puppeteer/docs/api/puppeteer.connectiontransport.md
dependabot[bot] 93e9acc410
chore(deps-dev): Bump the dev-dependencies group with 3 updates (#12101)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Vitkov <nvitkov@chromium.org>
2024-03-20 15:03:14 +00:00

98 lines
831 B
Markdown

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