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.


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
    displayName: "TEST",
    avatarUrl: "AVATAR_URL"
// Get the metadata of the Local Peer
const metadata = huddleClient.localPeer.metadata;


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.
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.