top | item 5151330

(no title)

de90 | 13 years ago

What about WebSockets, aren't they TCP?

discuss

order

Wilya|13 years ago

Not 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|13 years ago

It'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