-
Notifications
You must be signed in to change notification settings - Fork 46
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
how do you close connection? #78
Comments
Yep, theris no way to turn off heartbeat I am do not understand what are you need from the library? How do you use
|
so once i open a connection to the server i cannot close it? that is terrible! |
No, you can close connection)
|
why don't you go ahead and just explain how instead of forcing me to beg? |
What are you problem? |
i already told you! once i call socket.onConnect i cannot close the connection without reloading the page. not an option for a single page app. |
I saw the code and in js no close method for closing connection, but when You can add simple method close You using ipv6 but in your configuration you did not add ipv6 address
|
Just now i added close method I saw the code and in js no close method for closing connection, but when You can add simple method close You using ipv6 but in your configuration you did not add ipv6 address
|
this is not helpful. reloading page is not a good solution to closing a connection. good coding standards are to clean up resources when they are not being used. not providing a close method is bad practice. |
So, i am do not understand what are you want, you can not emit events from
|
i want to listen for server messages and then stop listening for server messages without reloading the page. |
unless i refresh the page, i get an infinite heartbeat loop. there is no obvious way to stop listening once socket.onConnect has been run.
the log continues to output this until i refresh the page:
The text was updated successfully, but these errors were encountered: