1
0
Fork 0
polaris-task-force/src/lib/realtime
Z8MB1E 4c6d34e868 feat(realtime): anchor SSE client set on globalThis for cross-bundle delivery
Next.js dev bundles server packages per route, so a module-level Set forks
into one copy per bundle: a broadcast issued from a server action or registry
bundle would never reach a client subscribed through the /api/realtime route
bundle. Anchoring the client set on globalThis unifies every bundle copy within
the single dev process, the same trick blackjack/poker already use. It is a
no-op in production, which has one module instance anyway.
2026-10-16 00:32:42 -04:00
..
bus.ts feat(realtime): anchor SSE client set on globalThis for cross-bundle delivery 2026-10-16 00:32:42 -04:00
presence.ts feat(realtime): add channel presence 2026-08-20 19:57:01 -04:00