Methods

Methods

Available methods

You can install the Huddle01 Vanilla JS SDK packages in two ways:

1.using the script tag: Add the following code snippet to the head of your HTML file: Replace with our CDN

 
<script src="https://unpkg.com/@huddle01/web-core@latest/dist/index.js" ></script>
 
<script>
  huddleClient.initialize("YOUR_PROJECT_ID") 
  huddleClient.joinLobby("YOUR_ROOM_ID");
</script>
 

2.using npm (or yarn): Run the following command in your terminal to install the package:

npm install @huddle01/web-core

After installing the package, you can initialize the client in your JavaScript code as shown below:

 
<script>
  huddleClient.initialize("YOUR_PROJECT_ID") 
  document.getElementById('joinLobby').onclick = () => {
    huddleClient.joinLobby('YOUR_ROOM_ID');
  };
  document.getElementById('joinRoom').onclick = () => {
    huddleClient.joinRoom();
  };
</script>
 
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.