<- Back to docs overview

Real-time Collaboration

Participant events → project coordinator → peer updates

All participants share one project socket channel for cursors, edits, and operational events.

Multi-user editing with cursor sharing and file edit broadcasting

Flow 1

Notes

All real-time features share a single WebSocket connection per client through the ProjectCoordinator DO (keyed project:<id>). Uses the WebSocket Hibernation API — connections survive DO eviction. On collab-join, the server sends back collab-state with participant list, self-id, assigned color, and any running AI sessions. The full protocol has 8 client message types and 16 server message types covering HMR, collaboration, errors/logs, CDP relay, AI streaming, git status, and test results.