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