OdinClient.initRooms

initRooms(token: string, gateway?: string): Promise<OdinRoom[]>

Authenticates against the ODIN server and returns OdinRoom instances for all rooms set in the specified token.

Parameters

NameTypeDescription
tokenstringThe room token for authentication
gatewaystringThe gateway to authenticate against

Returns

TypeDescription
Promise<OdinRoom[]>