Room
Room is the place where the actual meeting takes place. It is the place where the user can interact with other peers.
Name | Type | Description |
---|---|---|
joinRoom() | Function | moves user from lobby to actual room with other peers |
leaveRoom() | Function | removes user from room, back to the lobby |
endRoom() | Function | Ends the room for all, only `host` has the ability to call this function |
Sample Code
<script>
huddleClient.initialize("YOUR_PROJECT_ID")
document.getElementById('joinRoom').onclick = () => {
huddleClient.joinRoom();
};
document.getElementById('leaveRoom').onclick = () => {
huddleClient.leaveRoom();
};
document.getElementById('endRoom').onclick = () => {
huddleClient.endRoom();
};
</script>