Developer Documentation

OdinClient

export class OdinClient

The Odin client is the main entry point for the Odin SDK. It is used to create rooms. Create an instance with your access key and use it to create rooms.

Constructor

NameTypeDescription
constructorOdinClientCreates a new instance of a client. Use this to create rooms.

Public Methods

NameTypeDescription
createRoomOdinRoomCreates a new local room instance with the given ID and user ID. Use join to connect to that room.
createRoomWithAccessTokenOdinRoomCreates 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.
createRoomWithTokenOdinRoomCreates 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.
generateAccessTokenstringGenerates a token for the given access key, room and user ID. This token can be used to join the room. To be more consistent with other SDKs, this method is deprecated. Use generateToken instead.
generateTokenstringGenerates a room token for the given access key, room and user ID. This token can be used to join the room.