colyseus / colyseus-examples

Examples for learning how Colyseus works
https://examples.colyseus.dev/
MIT License
177 stars 90 forks source link

Is there a reconnection mechanism for network disconnection #22

Closed xingwen93 closed 4 years ago

xingwen93 commented 4 years ago

Is there a reconnection mechanism for network disconnection

seiyria commented 4 years ago

Yes, users reconnect automatically when they disconnect (generally). This really belongs on colyseus' main tracker, though, not this one. If you still need help please ask and re-open there.

endel commented 4 years ago

You're probably looking for allowReconnection / client.reconnect() https://docs.colyseus.io/server/room/#allowreconnection-client-seconds