disconnect method

Future<void> disconnect()

Implementation

Future<void> disconnect() async {
  try {
    await _socket?.close();
  } finally {
    _socket = null;
  }
}