start

How to directly enter a room ?

(UPDATED – fixed bug)
New feature: It is now possible to join a particular room directly at login

2 cases

Let suppose you want to join room id : 1620
(you can find out your room id in your chatadmin)

https://html5-chat.com/chat/54/?startRoom=1620

 

  1. if you don’t use JWT authentification, just pass the url parameter startRoom
    ?startRoom=1620
  2. You do use JWT to login, then just inject the parameter: startRoom: id
roomid
Where to find the room id ?

 

so for room : 1620, you just need to add

'startRoom'=>1620

So for instance your JSON will be:

 

$json = json_encode(array('username'=>'myUsername', 'password'=>'myChatAccountPassword', 'gender'=>'male', 'role'=>'user', 
'image'=>base64_encode('https://html5-chat.com/img/malecostume.svg'), 'profile'=>'https://monsite.com/profile/myUserername', 'startRoom'=>1620));
create rooms

dynamic room creation

New feature : dynamic room creation

dynamicRooms

You will find that features in roles tab. You can indicate per role, how many dynamic rooms an user can create (if non, leave 0)

You can now define if a particular role can create dynamic rooms in real time.

These rooms are temporary rooms : they are created meanwhile the creator of the room (the owner of the room) is on the chat.

If the creator of the room leaves the chat, the room is deleted in real time and all users are kicked from the chat.

A temporary room can be password protected. The owner of the room, can invite other members to join his room (direct access without having to provide the password)

The admin role can however get the rights to access any room, even password protected : there are full of new ideas with these exciting new feature. You must define in roles, what user has rights to create these dynamic rooms.

dynamic room