> 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/sessionended.md).

# sessionEnded

Emitted when someone has ended the session.

#### Sample payload

```json
{
  "type": "sessionEnded"
}
```

#### Sample subscription code

```javascript
sambaFrame.on('sessionEnded', () => {
  console.log('The session has ended');
});
```
