2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Connection
|
|
|
|
---
|
|
|
|
|
|
|
|
# Connection class
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
2023-09-13 13:47:55 +00:00
|
|
|
export declare class Connection extends EventEmitter<CDPSessionEvents>
|
2022-07-05 13:41:43 +00:00
|
|
|
```
|
|
|
|
|
2023-09-13 13:47:55 +00:00
|
|
|
**Extends:** [EventEmitter](./puppeteer.eventemitter.md)<[CDPSessionEvents](./puppeteer.cdpsessionevents.md)>
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
## Constructors
|
|
|
|
|
2024-01-24 11:38:21 +00:00
|
|
|
| Constructor | Modifiers | Description |
|
|
|
|
| -------------------------------------------------------- | --------- | -------------------------------------------------------------- |
|
|
|
|
| [(constructor)](./puppeteer.connection._constructor_.md) | | Constructs a new instance of the <code>Connection</code> class |
|
2023-03-21 11:53:13 +00:00
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
2023-03-28 18:02:00 +00:00
|
|
|
| Property | Modifiers | Type | Description |
|
|
|
|
| -------- | --------------------- | ------ | ----------- |
|
|
|
|
| timeout | <code>readonly</code> | number | |
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
2024-01-24 11:38:21 +00:00
|
|
|
| Method | Modifiers | Description |
|
|
|
|
| -------------------------------------------------------- | ------------------- | ----------- |
|
|
|
|
| [createSession](./puppeteer.connection.createsession.md) | | |
|
|
|
|
| [dispose](./puppeteer.connection.dispose.md) | | |
|
|
|
|
| [fromSession](./puppeteer.connection.fromsession.md) | <code>static</code> | |
|
|
|
|
| [send](./puppeteer.connection.send.md) | | |
|
|
|
|
| [session](./puppeteer.connection.session.md) | | |
|
|
|
|
| [url](./puppeteer.connection.url.md) | | |
|