disconnect method

Future<void> disconnect()

Implementation

Future<void> disconnect() async {
  await _socket?.close();

  _handleDisconnect();
}