Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinClient.createRoomWithAccessToken

public createRoomWithAccessToken(accessToken: string): OdinRoom

Creates a new local room instance with the given access 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 generateToken. To be more consistent with other SDKs, this method is deprecated. Use createRoomWithToken instead.

Parameters

NameTypeDescription
accessTokenstringThe access token to use to join the room.

Returns

TypeDescription
OdinRoom