@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.
14 lines (12 loc) • 334 B
TypeScript
declare const usePeerIds: (props?: {
roles?: string[];
labels?: Array<"audio" | "video" | "screen-share-video" | "screen-share-audio" | string>;
onPeerRoleUpdate?: (data: {
peerId: string;
newRole: string;
prevRole: string;
}) => void;
}) => {
peerIds: string[];
};
export { usePeerIds };