-
Notifications
You must be signed in to change notification settings - Fork 98
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [Bug]: Can't close websocket connection #698
Labels
鈽笍 Bug
Something isn't working
Comments
@mstrYoda Any idea what may be causing this? |
Hi, you can not close a hijacked connection in this way. It is basically do nothings. You can just return from the websocket handler function and it closes underlying connection after exiting handler. |
Returning directly from the websocket handler worked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
I want to close a websocket connection but nothing happens (no error etc.).
The client remains connected and can also send messages.
How to Reproduce
Steps to reproduce the behavior:
Expected Behavior
The server should close the connection after 5 seconds
Contrib package Version
websocket/v1.1.0
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: