---
sidebar_label: ConnectionTransport.onclose
---

# ConnectionTransport.onclose property

#### Signature:

```typescript
interface ConnectionTransport {
  onclose?: () => void;
}
```