What is WebSocket?

The WebSocket protocol enables message exchange between clients and servers on top of a persistent TCP connection (optionally secured with Transport Layer Security). The initial protocol handshake makes use of HTTP semantics, allowing the WebSocket protocol to reuse existing HTTP infrastructure.

Modern web browsers include a WebSocket client stack complying with the WebSocket API as specified by the W3C