-
Notifications
You must be signed in to change notification settings - Fork 30.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
HTTP2 and WS Websocket fails #31695
Comments
If there is no solution or you say there isn't going to be a solution anytime soon could you suggest a way so that I can use http2 and websockets on one node server? Thank you! |
Thanks @lpinca ! |
Based on someone's comment on the thread linked above, "using node's http2 framework with the allowHTTP1: true option then setting a ws server to listen on the http2 server just works." |
I know about this issue 15230, and there is a supposed POC which is very hacky. I tried to set up an http2 server with ws websocket, like this:
When I connect with a client to wss://localhost:3000 it fails.
error:
Thank you!
The text was updated successfully, but these errors were encountered: