Skip to content

Platform

Realtime

The SDK keeps a socket open to your workspace, so you get changes as they happen instead of polling. After a reconnect, missed events are replayed; a resync event means “refetch”. Keep handlers idempotent.

In a browser, get a 5-minute socket ticket from your server via POST /v1/api/platform/realtime/ticket (see proxy mode under Authentication).

TypeScript SDK
ecod.on("inbox.message", (event) => {
  // a message arrived or was sent in the unified inbox
});

process.on("SIGTERM", () => ecod.disconnect());