roomStateUpdated

Emitted when the room state changes. The updated room state is included in the payload.

Read about the room state specification in the roomState property.

Sample payload

{
  "type": "roomStateUpdated",
  "data": {
    //Look at the roomState property for full payload description
  }
}

Sample subscription code

sambaFrame.on('roomStateUpdated', (event) => {
  const data = event.data;
  //Read some properties from the updated room state
  //data.layout.mode
});

Last updated