disconnect method

Future<void> disconnect()

Disconnect the underlying client.

Implementation

Future<void> disconnect() async {
  if (_client != null) {
    await _client!.disconnect();
    _client = null;
  }
}