disconnect method
Disconnects from the WebSocket server
Implementation
Future<void> disconnect() async {
await webSocket?.close();
pingTimer?.cancel();
}
Disconnects from the WebSocket server
Future<void> disconnect() async {
await webSocket?.close();
pingTimer?.cancel();
}