August 2017
Beginner
298 pages
7h 4m
English
We just need to add one more line to make the user join the room:
webrtc.joinRoom(room);
This will add the user to the room, however, once the user is inside the room, we need to hide the .create-room-area div and display the .info-area div. These are available in the roomCreated() method of the Home class. But that method depends on the this.roomName class variable, which should contain the room name. So, we need to update a class variable and call the class method from outside the class.
Even though we can do it by using the home object we created earlier, it would make more sense if we could just update the class's room property and it will perform the actions automatically. For that, we can use setters. Setters are ...
Read now
Unlock full access