3 ms·
Websockets use HTTP only for the initial handshake. The rest of the channel uses the Websocket protocol.
by aloknnikhil 7y ago
Websockets use HTTP only for the initial handshake. The rest of the channel uses the Websocket protocol.
- quotemstr 7y agoYes. That protocol is effectively part of HTTP now.
- ivanfon 7y agoThe WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request. https://tools.ietf.org/html/rfc6455#section-1.7 https://tools.ietf.org/html/rfc6455#section-1.7
- quotemstr 7y agoEffectively. If you do connection setup, service disambiguation, redirects, and so on with HTTP and switch to a non-HTTP interactive protocol, what you've effectively done is create an HTTP sub-protocol, and I don't care what the document you quoted says.