Developer Documentation

OdinClient.createRoom

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

NameTypeDescription
accessKeystringThe access key to use to generate the token. You can get a free access token in our developer center
roomIdstringThe ID of the room to create.
userIdstringThe ID of the user to create the room for.

Returns

TypeDescription
OdinRoom