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 (16 loc) 479 B
declare const useLobby: (props?: { onLobbyPeersUpdated?: (lobbyPeersIds: string[]) => void; onNewLobbyPeer?: (peer: { peerId: string; metadata?: string | undefined; }) => void; }) => { lobbyPeersIds: string[]; getLobbyPeerMetadata: <T = unknown>(peerId: string) => { peerId: string; metadata: T; }; admitPeer: (peerId: string) => Promise<void>; denyPeer: (peerId: string) => Promise<void>; }; export { useLobby };