Lobby
The lobby is where users can toggle with audio/video controls before joining a room.
Name | Type | Description |
---|---|---|
joinLobby(roomId: string, accessToken: string) | Function | moves the user to a pre-room lobby where they can toggle with audio/video controls before joining a room |
leaveLobby() | Function | removes the user from the lobby back to the initialized state |
Example
<script>
huddleClient.initialize("YOUR_PROJECT_ID")
document.getElementById('joinLobby').onclick = () => {
huddleClient.joinLobby('YOUR_ROOM_ID');
};
document.getElementById('leaveLobby').onclick = () => {
huddleClient.leaveLobby();
};
</script>