AcadeDoc/apps
Corentin 731d7f5e93 feat(sync-blocks): SSE endpoint for realtime updates
Client use-sync-block-realtime opened GET /v1/sync-blocks/:id/events
but no such route existed -> SPA fallback served HTML 200 and the
EventSource failed. Add @Sse(':id/events') wired to the existing
EventEmitter2 broadcast (SYNC_BLOCK_UPDATED_EVENT), filtered per
masterId, with a 25s heartbeat. Auth via the controller JwtAuthGuard
(JWT strategy reads the authToken cookie EventSource sends).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 14:31:50 +00:00
..
client feat(database-view): add row creation 2026-05-18 14:31:50 +00:00
extension-clipper refactor(acadedoc): rename API routes /api/acadenice -> /api/v1 — R5.1 2026-05-08 14:52:49 +02:00
server feat(sync-blocks): SSE endpoint for realtime updates 2026-05-18 14:31:50 +00:00