# featureSetUpdated

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

Read about the features specification in the [features](https://docs.digitalsamba.com/reference/sdk/properties/features) property.

{% hint style="info" %}
You can access the latest features set directly through the [features](https://docs.digitalsamba.com/reference/sdk/properties/features) property.
{% endhint %}

#### Sample payload

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

#### Sample subscription code

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