Skip to main content
Meridian exposes a Server-Sent Events endpoint for clients that cannot maintain a persistent WebSocket — serverless functions, Lambda, Cloudflare Workers, or AI agents.

Event format

Each event carries a single base64-encoded msgpack delta:
The delta has the same structure as WebSocket deltas — decode the base64, then decode the msgpack payload as a CRDT delta. Keep-alive pings are sent every 15 seconds to prevent proxy timeouts. Lagged receivers (those that fall too far behind the broadcast buffer) are silently skipped — reconnect to catch up.

Example

Auth

The token must have read permission for the CRDT ID. The namespace in the token must match the :ns path parameter.

Comparison with WebSocket

Use SSE when your client only needs to react to changes. For reads and writes from serverless agents, combine SSE with POST /v1/namespaces/:ns/crdts/:id/ops. See AI Agents for a complete example.