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
| Parameter | Type |
|---|---|
room | string |
Returns
string | Promise<string>