@huddle01/react
Version:
The Huddle01 React SDK offers a comprehensive suite of hooks, methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
12 lines (9 loc) • 330 B
TypeScript
import { RoomEvents } from '@huddle01/web-core/types';
declare const useRoomMetadata: <T = unknown>(props?: {
onMetadataUpdated?: (metadata: T) => void;
onLeave?: (data: RoomEvents["room-closed"][0]) => void;
}) => {
roomData: T | null;
updateMetadata: (data: T) => Promise<void>;
};
export { useRoomMetadata };