Very rarely I get the 'WebSocket is not open: readyState 2' Error. I suspect it happens when the server tries to send to a client that disconnected at the moment it was sent, or something similar.
Do i allways need to check for readystate before send() ?
Thanks
WebSocket is not open: readyState 2 (CLOSING)
Error: WebSocket is not open: readyState 2 (CLOSING)
at WebSocket.send (Y:\UiA\3 År\Bachelor\trianglearcade\server\node_modules\w
s\lib\websocket.js:314:19)