Protocol multiplexing on existing /ws/{slug} endpoint:
- Messages with docId (subscribe/unsubscribe/sync/awareness) → SyncServer
- Messages without docId → legacy canvas handlers (unchanged)
New files: doc-persistence.ts (debounced Automerge save/load),
sync-instance.ts (SyncServer singleton with participant mode).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| local-first | ||
| community-store.ts | ||
| encryptid-sdk.d.ts | ||
| index.ts | ||
| seed-campaign.ts | ||
| seed-demo.ts | ||
| shell.ts | ||
| spaces.ts | ||
| sync-instance.ts | ||