trails/apps/planner
Ullrich Schäfer 288e9c07f2
Fix cross-window Yjs sync: broadcast doc updates to all connections
The Vite Yjs plugin was only sending sync responses back to the
sender, not broadcasting updates to other WebSocket connections
in the same room. This caused cross-window sync to only work via
BroadcastChannel (same browser context), not across separate
browser windows/incognito.

Fix: Add doc.on('update') listener that broadcasts updates to all
connections in the room except the origin sender.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 08:25:25 +01:00
..
app Fix cross-window Yjs sync: broadcast doc updates to all connections 2026-03-23 08:25:25 +01:00
Dockerfile Add infrastructure: Terraform, Docker Compose, BRouter, CD pipeline (#2) 2026-03-22 13:32:01 +01:00
package.json Fix Yjs WebSocket in dev mode 2026-03-23 01:12:13 +01:00
react-router.config.ts Complete monorepo toolchain setup (tasks 1.1-1.7) 2026-03-22 12:12:57 +01:00
server.ts Add Planner session management with Yjs WebSocket (#1) 2026-03-22 13:26:03 +01:00
tsconfig.json Add Planner session management with Yjs WebSocket (#1) 2026-03-22 13:26:03 +01:00
vite.config.ts Fix Yjs WebSocket in dev mode 2026-03-23 01:12:13 +01:00