Quickstart
From a secret key to a live event in a few minutes.
You need a project and its secret key: sign in and create both from the dashboard. Each project's Quickstart tab shows these steps with its own id filled in.
1. Install
One package: the server SDK, the browser client, and React hooks and components under /react and /ui.
2. Keep the secret key on your server
The SDK reads both from the environment. Never ship the key to a browser: it signs tokens and publishes.
3. Hand the browser a token
One route, from your own session. Tokens list the channels a user may join, here only their own orders channel, and expire after 10 minutes; the client fetches a new one.
4. Wrap the app
Safe with server rendering: nothing touches the network during render.
5. Publish from your server, read in the browser
Publish to the user's own channel, the one their token allows, and their open tabs get it live. Every event gets a sequence number and is stored before it is sent, so a reconnecting tab gets exactly what it missed.
6. Or publish over HTTP
From anything that can send a request, to the same channel.
Next
Read how tokens decide who may join what, then the page for the primitive you need: Events, Presence or AI streams.