Invalid access of closed uWS.WebSocket/SSLWebSocket. #508
Answered
by
hst-m
davidshore
asked this question in
Q&A
-
Here I have a loop where my game server is sending game invites to some players online depending on their elo score:
I keep getting these errors: quick match Invalid access of closed uWS.WebSocket/SSLWebSocket. How can I check that the websocket is not closed before I try to send? |
Beta Was this translation helpful? Give feedback.
Answered by
hst-m
Apr 17, 2021
Replies: 1 comment
-
In the websocket close event handler you can mark the ws as closed or remove player from list |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidshore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the websocket close event handler you can mark the ws as closed or remove player from list
close:ws=>ws.closed=true