-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Creating websocket.Server from http2.createSecureServer #1293
Comments
There is no support for WebSocket over HTTP/2. See https://daniel.haxx.se/blog/2016/06/15/no-websockets-over-http2/, nodejs/node#15230. |
Oh, i didn't know :/ thank you very much for the links. |
if anyone else stumbles on this tix. Firefox is defaulting to websockets over http2 (if the server advertises support) - see network.http.spdy.websockets Reverse proxy solutions are beginning to support http2 web-sockets as well: There are significant changes in how ugrade happens over http2 - notably there are no Upgrade header utilized, instead extended HTTP CONNECT method is being used to bootstrap websocket protocol. |
Hi (sorry for creating the ticket here, stackoverflow didn't seem like the right place for this).
I was wondering if there is a way, or if it will be possible to create a websocket server on top/from the http2.createSecureServer instance.
Right now i have to create an additional regular https.server and then create the websocket server from this instance, this works fine but it forces me to have another port open (which makes sense).
I am aware that http2 in node is still in "experimental" stage, but better support for it in ws would be great.
The text was updated successfully, but these errors were encountered: