WebSocket (WS)

WebSocket keeps a persistent two-way connection open between a browser and a server, so data flows instantly both ways without reopening a connection each time.

Technically: A protocol (RFC 6455) that upgrades an HTTP handshake to a persistent, full-duplex TCP channel, letting either side push frames at any time without polling. In AI apps WebSockets enable token-by-token streaming of model output, real-time voice I/O for speech models, and low-latency agent control. Builders manage connection lifecycle (heartbeats, reconnects) and backpressure.

Category: Protocols & Standards

Related ideas