@huddle01/web-core
v2.3.1
Published
The Huddle01 Javascript SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
Downloads
950
Readme
Huddle01 Core SDK
Core SDK
The Huddle01 Vanilla JS SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
Installing the packages:
You can install the Huddle01 Vanilla JS SDK packages in two ways:
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@umd/dist/index.global.js"></script> <script> let client; // call this function in onclick of `join room` button const init = async () => { client = new HuddleWebCore.HuddleClient({ projectId: "YOUR_PROJECT_ID", options: { activeSpeakers: { // Number of active speaker visible in the grid, by default 8 size: 10, }, }, }); const room = await client.joinRoom({ roomId: "YOUR_ROOM_ID", token: "YOUR_ACCESS_TOKEN", }); }; </script>
using npm (or pnpm/bun): Run the following command in your terminal to install the package:
npm install @huddle01/web-core
For more information head to https://huddle01.com/docs
💡 For any help reach out to us on Discord