isWebSocketOpen method
Implementation
bool isWebSocketOpen(String url) {
WebSocketChannel? webSocket = webSockets[Relay.clean(url)];
// return webSocket != null && webSocket.socketState.status == SocketStatus.connected;
//&& webSocket.ready== WebSocket.open
return webSocket != null && webSocket.closeCode==null;
}