closeWebSocket method
Close the WebSocket and release resources.
Implementation
Future<void> closeWebSocket() async {
await _wsChannel?.sink.close();
_cleanupWs();
}
Close the WebSocket and release resources.
Future<void> closeWebSocket() async {
await _wsChannel?.sink.close();
_cleanupWs();
}