Replace webmasterid and token by your webmasterid and your token. You can find that inside your chatadmin panel
How to pass user parameters to the chat ?
If you just use the script like, you user is not identified by the chat: he will need to input his username and will be assigned a random id and random avatar. If you want to specify an username, id and avatar, you need to pass some extra parameters to the script. Use JWT to encode these parameters and pass them to the chat as shown in this sample:
Since html5-chat is growing and has new extra features every day, it becomes difficult to understand and have a global view of all features and options he offers: in order to simplify the usage of the chat, we decided to create ready to go chat templates
What are chat templates ?
Templates are ready to go configurations of the chat so you can quickly start with a ready to go chat feature. This allows you to avoid to configure the chat to make the chat work for you
What are the chat templates available ?
For now we have 3 ready to go templates:
tabAndWindow: This is a classical multi users chat where new private chats are in separated tabs and where webcams open in drag-gable windows
roulette This is a chat roulette mode. It picks up randomly an available user and plays his webcam. It is based on the chatroulette concept
Shoutbox: A simple text only chat. It is based on the concept of shoutbox where people can quickly writes text messages.
Where to set up a chat template ?
You have to login into your chatadmin as usual and choose the right template. Be careful: This action will overwrite all configuration of your actual chat. This can also be a good way to reset or restore a messed configuration chat and start with a clean configuration.