-
Notifications
You must be signed in to change notification settings - Fork 37
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
Close websocket connection? #32
Comments
I have the same problem 😢 |
i have the same problem? i can only use message. How can i use connected and disconnected? |
I hope to add a reject function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How would you properly close a websocket connection? Basically what I am trying to do is check if correct query string parameters are not present then I close the connection.
Here's what I am trying to do right now.
I am not really sure if this is correct because I keep on getting
socket hang up
messages and if I remove thereturn
everything after the if statement still gets executed. I also tried usingonclose
event on the client but it never triggers.The text was updated successfully, but these errors were encountered: