disconnect method

  1. @override
void disconnect()
override

Implementation

@override
void disconnect() {
  try {
    _client!.disconnect();
    _messagesController?.close();
  } catch (e) {
    debugPrint(e.toString());
  }
  _client = null;
  _clientId = null;
}