usePeerIds
The usePeerIds hook returns peerIds of all peers inside a Huddle01 room.
const {
peerIds
} = usePeerIds({
labels: ["audio"]
});
Props
The usePeerIds hook accepts an object with the following fields as props.
1. labelsOptional
Description | Type |
---|---|
TODO: NOT SURE WHAT THIS IS FOR. | Array<'audio' | 'video' | 'screen-video' | 'screen-audio' | string> |
Example Usage
const peerIds = usePeerIds({ labels: ["audio"] });
Returns
The usePeerIds hook returns an object with the following fields.
1. peerIdsArray
Description | Type |
---|---|
List of peerIds. | string[] |