Back to Puppeteer

Connection.session() method

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

19.2.2447 B
Original Source

Connection.session() method

Signature

typescript
class Connection {
  session(sessionId: string): CDPSession | null;
}

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

sessionId

</td><td>

string

</td><td>

The session id

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

Returns:

CDPSession | null

The current CDP session if it exists