A full-duplex communications protocol for a TCP connection used for real-time applications, gaming and chat lines. Unlike HTTP, which is half-duplex, WebSocket is full duplex. Whereas HTTP is stateless, WebSocket keeps the session going until terminated by either side. WebSocket uses the
ws:// or
wss:// prefix. See
HTTP and
TCP.