Readystate error

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)

Hi @veggis, I think this error has been fixed in the latest version. Which version of colyseus are you using on server-side?

v0.9.1, I've updated to latest now. Haven't happened since :)