Hooks

Hooks

Available hooks

// Example
import { useHuddle01 } from "@huddle01/react"
 
const App = () => {
	const { initialize, isInitialized, onEvent } = useHuddle01();
 
	useEffect(() => {
		if(!isInitialized)
			initialize("YOUR_PROJECT_ID");
	}. []);
 
	onEvent("lobby:joined", () => {
		console.log("Lobby Joined Successfully");
	})
 
	return (
		<div>
			Hello World!
		</div>
	)
}
 
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.