realtime group is Voyant Cloud’s pub/sub service. Your server publishes messages to channels, and clients subscribe over WebSocket. It supports message history, presence, and short-lived client tokens so browsers can connect without ever holding your API key.
Publishing from the server
Publish single messages or batches from trusted server code:Subscribing from a client
Browsers should never carry the API key. Instead, mint a short-lived client token on the server, scoped to the capabilities that client needs, and hand it to the front end.RealtimeChannel is a standalone WebSocket subscriber with auto-reconnect and sinceId resume. It exposes on, publish, enterPresence, updatePresence, leavePresence, and close. The minted client token, not the API key, authenticates the connection.
Scopes
| Methods | Scope |
|---|---|
publish, publishBatch | realtime:publish |
history, presence.get | realtime:subscribe |
tokens.mint | realtime:tokens |
RealtimeMessageSummary, RealtimePresenceMember, RealtimeTokenSummary, PublishRealtimeMessageInput, PublishRealtimeBatchInput, MintRealtimeTokenInput, RealtimeCapability, RealtimeChannelOptions.