I want to use listener.isOpen() on browser WebSocket, but it returns always false.
because WebSocket.OPEN is always undefined.
I think it should be corrected as follows.
return this.webSocket.readyState === this.webSocket.OPEN;
please check this, thank you.