Back to Puppeteer

Connection class

docs/api/puppeteer.connection.md

19.2.21.8 KB
Original Source

Connection class

Signature

typescript
export declare class Connection extends EventEmitter<CDPSessionEvents>

Extends: EventEmitter<CDPSessionEvents>

Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="_constructor_">(constructor)(url, transport, delay, timeout, rawErrors, idGenerator)</span>

</td><td> </td><td>

Constructs a new instance of the Connection class

</td></tr> </tbody></table>

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="timeout">timeout</span>

</td><td>

readonly

</td><td>

number

</td><td> </td></tr> </tbody></table>

Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

<span id="createsession">createSession(targetInfo)</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="dispose">dispose()</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="fromsession">fromSession(session)</span>

</td><td>

static

</td><td> </td></tr> <tr><td>

<span id="send">send(method, params, options)</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="session">session(sessionId)</span>

</td><td> </td><td> </td></tr> <tr><td>

<span id="url">url()</span>

</td><td> </td><td> </td></tr> </tbody></table>