Realtime
Sse Endpoint
SSE endpoint for real-time subscriptions.
GET
Sse Endpoint
SSE Endpoint
Connect to this endpoint for real-time updates via Server-Sent Events (SSE). Connection URL:Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| token | string | Yes | JWT access token |
| collection | string | No | Collection to subscribe to (can be specified multiple times) |
Server Events
Heartbeat Event
Sent every 30 seconds to keep the connection alive.Message Event
Sent when a subscribed collection has data changes.Event Format
All data events follow this structure:Connection Behavior
- Automatic reconnection handled by the browser
- Token expiration will close the connection
- Heartbeat sent every 30 seconds
Example
Multiple Collections
Subscribe to multiple collections by specifying thecollection parameter multiple times:
Response
200 - application/json
Successful Response
Sse Endpoint