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 Name | Description | Returns |
---|---|---|
metadata-updated | Triggered when metadata is updated | metadata: unknown |