-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Add a 'disconnecting' event to access to socket.rooms upon disconnection #2332
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
Conversation
👍 Alternatively, we would be able to emit https://github.com/socketio/engine.io/blob/master/lib/socket.js#L296 Though |
Let's resume this discussion after |
+1 on disconnecting. I have a branch that I was going to create a PR from that looks nearly identical to this... :) I could also see renaming disconnect to disconnected but that would be a breaking change for a lot of folks... It would clear up what event you're actually catching however and might be worth it. |
+1 |
Merge it! |
+1 |
+1 Cmon guys, make it happen... |
+1 This feature must exist now! |
+1 |
+1 ! @rauchg I guess we are at 1.4.8 now! Can you please take a look at this? I guess this is a very common use case! |
cf1dab4
to
1c1e333
Compare
+1 |
2 similar comments
+1 |
+1 |
Finally. Great! 💃 |
Thank you, finally no more +1 mails in my inbox :-) |
As suggested there #1814 (all credits to @X-Coder)