OdinClient.initRoom

initRoom(token: string, gateway?: string): Promise<OdinRoom>

Authenticates against the ODIN server and returns an OdinRoom instance for the first room set in the specified token.

Parameters

NameTypeDescription
tokenstringThe room token for authentication
gatewaystringThe gateway to authenticate against

Returns

TypeDescription
Promise<OdinRoom>