Call this method to join the Chat Room. This method can be used to automatically join the user to the chat room.
You can join a chat room using one of the following parameters:
Just specify any username and join the user. The username does not have to be unique.
You can generate the accessToken for the user via the REST API. You can learn about creating an accessToken token from here..
When you create a moderator from the dashboard, it gives you an email and password for the moderator, you can use the email and password fields to specify the email and password for the moderator.
You can also use the accessToken to login the moderator, learn about creating a moderator via the API here..
|username||Username of the chat user||String||Required when accessToken or email is not specified|
|roomPassword||Password of the room, if the room is password protected||String||Required when the room is password protected|
|accessToken||Access token of the chat room.||String||Required when username or email is not specified|
|email of the chat user||String||Required when username or accessToken is not specified|
|password||password to enter the user as a Moderator||String||Required when you want the user to be a Moderator, if you are using email to login the user|
Specifying Profile Picture and Custom Metadata for the user
To specify profile picture and custom metadata for the user, you can use the Create User API to generate the accessToken and login the user. The Create User API allows you to specify