From Client, how to disconnect to server ( not only leave room but close websocket connection ).
I can't find the API to do that.
Thank you
From Client, how to disconnect to server ( not only leave room but close websocket connection ).
I can't find the API to do that.
Thank you
Hi @boygiandi, what do you mean? Each Room creates a WebSocket connection, by leaving that Room, you're disconnecting that WebSocket.
On previous versions of Colyseus (0.9.x and below) the Client
also had a WebSocket connection, this is no longer the case on recent versions. Match-making happens via HTTP requests.
Hope this helps, cheers!
I'm having problem like this.
( problem is sever wait until async call is finished then process the leave room command - I guest ? )
How to make the leave room immediately and force stop all async call on server.
Thank you