-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
disconnect problems #431
Comments
|
I see , but if I don't use socket.disconnect(socket.id); I could not close the connection with client |
The connection is closed automatically when the client leaves the page/refreshes/closes browser etc. But if |
ok, i get it , thanks |
I make a simple example for socket.io. when the client emits the 'disconnect' event, the server side would execute socket.on('disconnect', function(msg) too many times that the server would break down because of ' socket.disconnect(socket.id); '
If I comment that line, there is no errors, so what is the problem ?
code:
The text was updated successfully, but these errors were encountered: