Realtime
Multiplayer on the web with TypeScript, React and Next.js: transports and the patterns every realtime app shares, a socket in React and where it lives in a Next.js app, Socket.IO, Cloudflare Durable Objects, and three builds: chat rooms, game worlds, and collaborative editing of shared artifacts. The wire protocol, browser API, heartbeats and backpressure are under WebSockets.