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