Skip to content

Type Alias: TokenSource ​

ts
type TokenSource = (room) => string | Promise<string>;

Defined in: client/token.ts:6

Where a client gets its join token from. Called before every connection attempt with the id of the room being connected to, so a long session outlives any one token and a token scoped to a room can follow a handover.

Parameters ​

ParameterType
roomstring

Returns ​

string | Promise<string>

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.