UNPKG

@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.

18 lines (15 loc) 413 B
import { TPermissions } from '@huddle01/web-core/types'; declare const useRemotePeer: <T = unknown>(props: { peerId: string; onMetadataUpdate?: (data: { metadata: unknown; }) => void; }) => { peerId: string | undefined; role: string | null; metadata: T | null; updateRole: (role: string, options?: { custom: TPermissions; }) => void; }; export { useRemotePeer };