Shinigami Hooks
usePeerIds

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
DescriptionType
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
DescriptionType
List of peerIds.string[]
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.