worker
Stream Notifications
Server-Sent Events stream of new notifications for this worker.
Polls the notifications table every 2 seconds; emits one data: event per new row. Sends a : keepalive comment every 15s so the connection survives idle-timeout in intermediate proxies (Cloudflare's default is 100s; Nginx's is 60s). The poll itself is cheap — a single indexed query bounded by id > :last_id.
Why polling and not LISTEN/NOTIFY: keeping the existing notifications pipeline simple. A future commit can swap the inner loop for an asyncpg LISTEN if we're paying for the poll latency.
get/v1/worker/notifications/stream
Request
- Base URL: https://api.mundane.market (the document declares no server; this is the origin it was published from)
- URL: https://api.mundane.market/v1/worker/notifications/stream
- Auth: none declared
Headers
authorizationstring
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.