Developer Documentation

OdinClient.createRoomWithToken

public createRoomWithToken(accessToken: string): OdinRoom

Creates a new local room instance with the given room token. Use join on the returned OdinRoom instance to connect to that room. Use this method if you already have an access token, either created elsewhere or by calling generateAccessToken.

Parameters

NameTypeDescription
accessTokenstringThe access token to use to join the room.

Returns

TypeDescription
OdinRoom