TypeScript SDK: Stream

The methods of the TypeScript client under Stream. Events pushed over a WebSocket, with replay.

client.stream

TypeScript

client.stream(options: StreamOptions = {}): InboxStream

Sends stream: GET /v1/ws

A WebSocket to /v1/ws that pushes events as they happen, with the credential as ?token=. Keys or REST app tokens with events:read and mail:read; a session token is refused. Never log the connection URL.

Access key: an API key, or a correctly scoped app token where delegated access is allowed; console sessions are refused. An app token needs events:read and mail:read.

Up Down to move, Enter to open, Esc to close