Emitted when the room state changes. The updated room state is included in the payload.
{
"type": "roomStateUpdated",
"data": {
//Look at the roomState property for full payload description
}
}
sambaFrame.on('roomStateUpdated', (event) => {
const data = event.data;
//Read some properties from the updated room state
//data.layout.mode
});