public generateToken(accessKey: string, roomId: string, userId: string): string
Generates a room token for the given access key, room and user ID. This token can be used to join the 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 generate the token for. |
userId | string | The ID of the user to generate the token for. |
Returns#