disconnect method

Future<void> disconnect()

Disconnects from the ATEM switcher.

Implementation

Future<void> disconnect() async {
  _stopTimers();
  _socketSubscription?.cancel();
  _socket?.close();
  _connected = false;
  _state.setConnected(false);
  await _events.close();
}