useHuddle01

The useHuddle01 hook exposes huddleClient which you can use to access all methods that are available in our Vanilla JS SDK.

NameDescriptionType
huddleClientHuddleClient instanceHuddleClient

Example Usage

// Close room using huddleClient
const closeRoom = async () => {
  try {
    await huddleClient.closeRoom();
  } catch (error) {
    console.log(error);
  }
};
 
// Listen to events using huddleClient
useEffect(() => {
  huddleClient.room.on("room-closed", () => {
    console.log("Room closed");
  });
}, []);
Audio/Video Infrastructure designed for developers to empower them to ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2024 Graphene 01, Inc. All Rights Reserved.