Stream unread notifications count
Opens a Server-Sent Events stream of the account’s unread notification count. Emits the current count immediately, then each change as notifications arrive or are marked read, until the client disconnects. Each event’s data is an UnreadCountEvent (see the response schema). Authenticate with a Bearer token via a fetch-based client; the native EventSource cannot send an Authorization header.
Response
Server-sent event stream; each event's data is the payload below.
An account's current unread-notification count, broadcast on the account's core-NATS unread subject.
Fan-out to any watching SSE connections so a badge updates live; the stored rows in Postgres remain the source of truth, so a missed broadcast is recoverable by re-reading the count.
The account's current number of unread notifications.
