> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/events/featuresetupdated.md).

# featureSetUpdated

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

Read about the features specification in the [features](/reference/sdk/properties/features.md) property.

{% hint style="info" %}
You can access the latest features set directly through the [features](/reference/sdk/properties/features.md) 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']);
});
```
