IM-Sync
SSE sync stream (continuous push)
Server-Sent Events endpoint for continuous sync. Streams sync events in real-time after an initial catch-up phase.
Protocol:
- Client opens SSE connection with JWT token and cursor
- Server sends all events since cursor as event: sync messages
- Server sends event: caught_up when historical events are exhausted
- Server streams new events as they occur via Redis pub/sub
- Heartbeat every 25s: event: heartbeat
SSE event types:
- sync — sync event data (same format as polling endpoint)
- caught_up — initial catch-up complete, now in real-time mode
- heartbeat — keep-alive signal
Requires SSE support (EventSource API in browsers, or SSE client library). Falls back to polling endpoint (GET /api/im/sync) if SSE unavailable.
get/api/im/sync/stream
Request
- Base URLhttps://prismer.cloud
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
tokenstring required
JWT authentication token
sincestring
Cursor (sync event ID) to resume from
Response
SSE event stream
Changes
No recorded changes to this operation across all 1 revision of this API.