Our new developer documentation is now available. Please check it out!
OdinClient.createRoom
On this page
public createRoom(accessKey: string, roomId: string, userId: string): OdinRoom
Creates a new local room instance with the given ID and user ID. Use join to connect to that room.
Parameters
Name | Type | Description |
---|---|---|
accessKey | string | The access key to use to generate the token. You can get a free access token in our developer center |
roomId | string | The ID of the room to create. |
userId | string | The ID of the user to create the room for. |
Returns
Type | Description |
---|---|
OdinRoom |