-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Error using WebSocket Helper for Cloudflare Workers #2883
Comments
It seems all that needs to happen is that
@yusukebe, I can create a PR to this effect if this is acceptable. |
I went ahead and made a PR here: |
@yusukebe any chance you could push a quick release with this fix? I have a project blocked on this issue. |
@pdlug Yes sir! |
Hi @ronkeiser @pdlug I've released the new version |
@yusukebe Working great now. Thanks so much! |
What version of Hono are you using?
4.4.2
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
Range Error
Employing the
upgradeWebSocket
helper produces an error and immediately returns a500
response:✘ [ERROR] RangeError: Responses with a WebSocket must have status code 101.
Minimal Example
Here is a minimal example using a snippet taken from the docs:
Example Repo
I also created a repo with the example so that this can be easily reproduced:
https://github.com/ronkeiser/hono-ws-example
What is the expected behavior?
Requests to the
/ws
endpoint should be upgraded to a websocket.What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: