trails/apps/planner/app/lib
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
..
brouter.test.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
brouter.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
db.ts Add Drizzle ORM with shared db package (#10) 2026-03-22 22:35:50 +00:00
host-election.test.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
host-election.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
rate-limit.test.ts Add BRouter proxy, rate limiting, and spec updates (tasks 5.1-5.2) (#11) 2026-03-22 22:43:47 +00:00
rate-limit.ts Add BRouter proxy, rate limiting, and spec updates (tasks 5.1-5.2) (#11) 2026-03-22 22:43:47 +00:00
sessions.ts Add Drizzle ORM with shared db package (#10) 2026-03-22 22:35:50 +00:00
use-routing.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
use-yjs.ts Fix waypoint drag, host election, segment routing, debug panel 2026-03-23 08:52:52 +01:00
vite-yjs-plugin.ts Fix cross-window Yjs sync: broadcast doc updates to all connections 2026-03-23 08:25:25 +01:00
yjs-server.ts Complete Planner session management (tasks 4.2, 4.6, 4.7) (#9) 2026-03-22 22:18:36 +00:00