Back to Puppeteer

Connection.fromSession() method

website/versioned_docs/version-24.40.0/api/puppeteer.connection.fromsession.md

19.2.2451 B
Original Source

Connection.fromSession() method

Signature

typescript
class Connection {
  static fromSession(session: CDPSession): Connection | undefined;
}

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

session

</td><td>

CDPSession

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

Returns:

Connection | undefined