Local Peer

localPeer object from huddleClient allows you to intereact with your own Peer object, which is how you are represented in the Huddle01 room.

Metadata

The updateMetadata method enables the Local Peer to update its metadata. You can add any custom metadata you want to the Local Peer.

// Update the metadata of the Local Peer
huddleClient.localPeer.updateMetadata({ 
    displayName: "TEST",
    avatarUrl: "AVATAR_URL"
 });
 
// Get the metadata of the Local Peer
const metadata = huddleClient.localPeer.metadata;

Events

Event NameDescriptionReturns
metadata-updatedTriggered when metadata is updatedmetadata: unknown
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.