Networking
WebSocket
A WebSocket is a persistent, bidirectional communication protocol that allows a client and server to push messages to each other instantly.
Diagram
Client ── 1. HTTP Upgrade Handshake ──▶ Server Client ◀─────── 2. Persistent TCP ──────▶ Server (Bidirectional messages)
In Depth
A WebSocket is a protocol that provides full-duplex (two-way), persistent communication channels over a single TCP connection, enabling real-time client-server communication.