Transport
The SDK connects over Centrifugo by default and falls back to SSE (Server-Sent Events) automatically when Centrifugo isn’t reachable. The connection handshake is signed by the device key, same as every other authenticated request. You don’t configure any of this — it’s on by default.Connection state
You can observe the connection so your UI can show an offline banner or a reconnecting spinner. The state machine is:| State | Meaning |
|---|---|
connecting | First connection attempt in progress. |
connected | Live; updates are streaming. |
reconnecting | Dropped; automatically retrying with backoff. |
disconnected | Not connected (e.g. app backgrounded). |
fatal | Unrecoverable (e.g. device revoked); won’t retry. |
What streams live
- Messages — agent replies appear in the open thread instantly.
- Tickets — status changes and unread indicators update in the inbox.
- Typing — whether a support agent is currently typing.
- Agent presence — whether an agent is online.
- Read receipts — when the agent has seen the user’s message.