Introducing Websockets

The Websocket (WS) protocol is a new protocol that supports a bidirectional channel for communication between a server and a client. This protocol overcomes several serious shortcomings of the earlier HTTP communication method. It includes a full duplex, bidirectional communication channel between a server and client over TCP. The RFC 6455 (http://tools.ietf.org/html/rfc6455) provides a detailed specification of this protocol. The Websocket protocol was standardized about two years ago by Internet Engineering Task Force (IETF) and since then has found several uses in real-time web apps (games, real-time chat, and more).

Websocket versus HTTP

The Websocket protocol also has some distinct advantages over HTTP, especially when ...

Get Heroku Cloud Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.