Realtime

Live notifications via SSE + FCM

Postgres NOTIFY powers server-sent events to the staff dashboard bell. Staff mobile apps receive FCM push when a patient ARRIVED — no manual refresh.

SSE
Web live bell
FCM
Mobile push
ARRIVED
Trigger event
v1.3.19
Shipped

SSE on Coolify

Dashboard subscribes to clinic-scoped notification stream — appointment and waiting-room updates appear instantly.

Staff FCM push

Doctors get a push when reception marks patient ARRIVED — tap opens waiting room deep link.

Notification factory

Central factory creates typed notifications with category, priority, and read state synced across devices.

Filtered by clinicId

Multi-tenant isolation — streams never cross clinics even on shared infrastructure.

Works with unlock PIN

Push arrives while session locked; unlock PIN restores dashboard without re-login.

Patient portal separate

Portal uses its own auth scope — staff realtime never leaks to patients.