-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose event to handle server-issued disconnects #58
Comments
Note: a hotfix was already applied to seemingly random tetr.js/src/ws/WebSocketManager.ts Lines 166 to 168 in 4ceff0b
I'm not sure if these are just random disconnects due to long idle periods, or the |
Fixed |
if there is no apparent reason for a disconnect (nothing happened on the ribbon, ws just closed itself), can this also be raised as an event rather than just silently reconnecting? |
A client can be disconnected by the server due to various reasons, including regular TETR.IO maintenance, which poses a problem for long-running bots.
Expose an event to notify bots when they've been disconnected and why, allowing them to handle reconnecting and re-setting up any bot state / in-game actions (such as opening rooms) themselves upon successful reconnection.
The text was updated successfully, but these errors were encountered: