14 · Shipping & Collaboration

WebSocket

Persistent two-way connection

A long-lived connection where server and client can push messages either way, unlike one-shot HTTP requests. Used for live updates, collab cursors, and some agent streams.

Concrete example

A chat UI may keep a WebSocket open so new messages arrive without refreshing.

Why it matters

When “poll every second” is the wrong tool for live data.