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

# connectionFailure

Emitted when the application cannot connect to the backend - it's a fatal error.\
The error could be caused by a bad internet connection or a firewall blocking the traffic.

#### Sample payload

```json
{
  "type": "connectionFailure"
}
```

#### Sample subscription code

```javascript
sambaFrame.on('connectionFailure', (data) => {
   //Do something custom and inform user
});
```
