live-sfu-demo/internal
noelorin c7f70970ac feat: POST+JWT SSE + permission visibility
Backend:
- SSE endpoints changed from GET to POST for JWT auth compliance
- Chat subscription moved to /api/room/{room}/chat/subscribe (avoids route conflict)
- handleAuthCheck now returns config:write permission (was missing from response)

Frontend:
- EventSource replaced with fetch POST + Authorization Bearer header
- Token persisted in localStorage, cleared on logout
- postSSE helper with exponential backoff reconnection
- rooms.tsx: SSE/loading gated on can('room:list'), not just isAuthed
- watch.tsx: room events SSE gated on can('room:watch'), chat SSE on can('room:chat')
- watch.tsx: subscribe button disabled when lacking room:subscribe
- permissions.ts: added isPublisher() helper
2026-08-23 23:55:23 +08:00
..
auth feat: add runtime config, room distributor override, user management & UI polish 2026-08-23 19:48:32 +08:00
config feat: realtime rooms via SSE (global rooms/events) 2026-08-23 23:19:12 +08:00
db feat: 接入 sync-live 后端重构,前端全面对齐新协议与接口 2026-08-21 00:31:51 +08:00
room feat: add runtime config, room distributor override, user management & UI polish 2026-08-23 19:48:32 +08:00
server feat: POST+JWT SSE + permission visibility 2026-08-23 23:55:23 +08:00
sfu feat: add runtime config, room distributor override, user management & UI polish 2026-08-23 19:48:32 +08:00