disconnect method
Implementation
Future<void> disconnect() async {
await _subscription?.cancel();
await _channel?.sink.close();
_connected = false;
}
Future<void> disconnect() async {
await _subscription?.cancel();
await _channel?.sink.close();
_connected = false;
}