disconnect method
dynamic
disconnect()
Disconnects from the WebSocket server
Implementation
disconnect() {
webSocket?.close();
pingTimer?.cancel();
}
Disconnects from the WebSocket server
disconnect() {
webSocket?.close();
pingTimer?.cancel();
}