You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue in the repo for socket.io summarizes why it would be useful to get the list of rooms a client is in when they disconnect (I think this is frequently needed functionality), and outlines several possible hacky fixes. What is the appropriate approach in Flask-SocketIO?
The text was updated successfully, but these errors were encountered:
I have merged the solution that was proposed, which basically kept the disconnected user in all the rooms until after the disconnect event handler is invoked. So it is now perfectly fine to query the user for the rooms, and then possibly broadcast something to those rooms to let others know the user left.
An issue in the repo for socket.io summarizes why it would be useful to get the list of rooms a client is in when they disconnect (I think this is frequently needed functionality), and outlines several possible hacky fixes. What is the appropriate approach in Flask-SocketIO?
The text was updated successfully, but these errors were encountered: