Our new developer documentation is now available. Please check it out!
OdinClient.createRoomWithToken
On this page
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
Name | Type | Description |
---|---|---|
accessToken | string | The access token to use to join the room. |
Returns
Type | Description |
---|---|
OdinRoom |