Closed ronkorving closed 8 years ago
I don't think that http2 is used when establishing websocket connection.
Ever? I remember seeing an RFC about this very topic. Not sure about its status though.
IIRC, there was effort to make WebSocket connection over HTTP/2, but there was no consensus about how to achieve it. I'm not sure it is still ongoing. I think all browsers today use HTTP/1.1 connection for WebSocket.
Reference: http://tools.ietf.org/html/draft-hirano-httpbis-websocket-over-http2-00 (may be expired, rejected, I don't know) Update: It seems that was no longer a possibility with HTTP/2: https://webtide.com/http2-last-call/
Right now, when I use https://www.npmjs.com/package/ws on top of a node-spdy server, the following happens:
This might just be Chrome not using the existing HTTP/2 connection that has already been established, or it might be Chrome not supporting WebSocket over HTTP/2. I'm making this issue just in case it may be node-spdy not supporting the protocol upgrade.
Does anyone have any deeper insights on this?