Expand description
WebSocket CRDT Handler - Collaborative Document Editing
The CRDT protocol (/ws/crdt/:doc_id) provides real-time collaborative editing
using Yjs conflict-free replicated data types.
Message Format (Binary): Messages use the Yjs sync protocol format directly (lib0 encoding):
- MSG_SYNC (0): Sync protocol messages (SyncStep1, SyncStep2, Update)
- MSG_AWARENESS (1): User presence/cursor updates
All messages are encoded/decoded using yrs::sync::Message.
Functionsยง
- handle_
crdt_ connection - Handle a CRDT connection