6 ms·
What about WebSockets, aren't they TCP?
by de90 14y ago
What about WebSockets, aren't they TCP?
- Wilya 14y agoNot directly. More like TCP-like messaging over HTTP. The server needs to understand the websockets protocol. Writing a basic server that strips the websockets part from messages and forwards them to a real TCP server isn't very hard, but it's still a server you need.
- icebraining 14y agoIt's not really "over HTTP", it's just an HTTP handshake: The 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. http://tools.ietf.org/html/rfc6455#section-1.7 http://tools.ietf.org/html/rfc6455#section-1.7