Function: generateAccessToken()
generateAccessToken(
accessKey
,roomId
,userId
):string
Generates an access token for a room and user ID. You can use this to join a room with a custom access token.
Parameters
• accessKey: string
The access key to use for this client. You can get one from https://developers.4players.io
• roomId: string
The ID of the room to create.
• userId: string
The ID of the user
Returns
string
Defined in
index.d.ts:11