Join

A user can join a room by using the join() method and supplying a room identifier. user s who provide the same identifier will be able to communicate with each other.

room = user.join('room-name');

This returns a room object which we can use to communicate with other user s.

A user can subscribe to the join event to find out when other user s join the room.