big-controller-60015
12/17/2025, 2:03 PMroom.on('roomMetadataChanged', (metadata) => {
console.log('Room metadata changed to:', metadata);
});
will this work in javascript UI will i be able to get this event in javascrip client sdk for uitall-airline-16756
12/17/2025, 2:03 PMtall-airline-16756
12/17/2025, 2:03 PMroomMetadataChanged on the Room object and the handler receives the updated metadata (a string). Your snippet is correct for a UI:
room.on('roomMetadataChanged', (metadata) => {
console.log('Room metadata changed to:', metadata);
});
This fires when room metadata is updated via the server-side API, and all participants in the room receive the event. Would you like an example of how to update room metadata from the server or how to parse/use the metadata in the UI?
Sources: Handling events | LiveKit docs