2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Connection.(constructor)
|
|
|
|
---
|
|
|
|
|
|
|
|
# Connection.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `Connection` class
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Connection {
|
2023-03-21 11:53:13 +00:00
|
|
|
constructor(
|
|
|
|
url: string,
|
|
|
|
transport: ConnectionTransport,
|
|
|
|
delay?: number,
|
|
|
|
timeout?: number
|
|
|
|
);
|
2022-07-05 13:41:43 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-02-23 12:31:23 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | --------------------------------------------------------- | ------------ |
|
|
|
|
| url | string | |
|
|
|
|
| transport | [ConnectionTransport](./puppeteer.connectiontransport.md) | |
|
|
|
|
| delay | number | _(Optional)_ |
|
2023-03-21 11:53:13 +00:00
|
|
|
| timeout | number | _(Optional)_ |
|