puppeteer/website/versioned_docs/version-21.5.2/api/puppeteer.connectiontransport.md
release-please[bot] a6b508aa36
chore: release main (#11364)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-11-15 10:48:54 +00:00

26 lines
850 B
Markdown

---
sidebar_label: ConnectionTransport
---
# ConnectionTransport interface
#### Signature:
```typescript
export interface ConnectionTransport
```
## Properties
| Property | Modifiers | Type | Description | Default |
| --------- | --------------------- | ---------------------------- | ----------- | ------- |
| onclose | <code>optional</code> | () =&gt; void | | |
| onmessage | <code>optional</code> | (message: string) =&gt; void | | |
## Methods
| Method | Description |
| -------------------------------------------------------- | ----------- |
| [close()](./puppeteer.connectiontransport.close.md) | |
| [send(message)](./puppeteer.connectiontransport.send.md) | |