---
sidebar_label: ConnectionTransport.onmessage
---

# ConnectionTransport.onmessage property

#### Signature:

```typescript
interface ConnectionTransport {
  onmessage?: (message: string) => void;
}
```