creamy-match-85520
08/21/2025, 8:20 AMtall-airline-16756
08/21/2025, 8:22 AMtall-airline-16756
08/21/2025, 8:23 AMset_metadata, here are a couple of easy ways to access it:
• Direct Access: You can simply grab the metadata right from the participant's metadata property. For example:
console.log(room.localParticipant.metadata);
• Event-Based Access: If you want to keep an eye on changes, just listen for the ParticipantMetadataChanged event. It’ll let you know whenever the metadata updates:
room.on(RoomEvent.ParticipantMetadataChanged, (oldMetadata, participant) => {
console.log('Metadata changed from', oldMetadata, participant.metadata);
});
These approaches make it super straightforward to access and stay updated on any metadata changes.