Skip to main content
The realtime group is Voyant’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:
Read recent history and presence:

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

Key types: RealtimeMessageSummary, RealtimePresenceMember, RealtimeTokenSummary, PublishRealtimeMessageInput, PublishRealtimeBatchInput, MintRealtimeTokenInput, RealtimeCapability, RealtimeChannelOptions.