2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Connection.(constructor)
|
|
|
|
---
|
|
|
|
|
|
|
|
# Connection.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `Connection` class
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Connection {
|
2023-03-24 10:22:06 +00:00
|
|
|
constructor(
|
|
|
|
url: string,
|
|
|
|
transport: ConnectionTransport,
|
|
|
|
delay?: number,
|
|
|
|
timeout?: number
|
|
|
|
);
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-03-06 13:53:56 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | --------------------------------------------------------- | ------------ |
|
|
|
|
| url | string | |
|
|
|
|
| transport | [ConnectionTransport](./puppeteer.connectiontransport.md) | |
|
|
|
|
| delay | number | _(Optional)_ |
|
2023-03-24 10:22:06 +00:00
|
|
|
| timeout | number | _(Optional)_ |
|