featureSetUpdated

Emitted when the features set changes. The updated features are included in the payload.

Read about the features specification in the features property.

You can access the latest features set directly through the features property.

Sample payload

{
  "type": "featureSetUpdated",
  "data": {
    "state": {
        //Look at the features property for full payload description
    }
  }
}

Sample subscription code

sambaFrame.on('featureSetUpdated', (event) => {
  const features = event.data.state;
  //Read some properties from the updated feature state
  console.log('Chat state is:', features['chat']);
});

Last updated