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

26 lines
416 B
Markdown
Raw Normal View History

---
sidebar_label: Connection.session
---
# Connection.session() method
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class Connection {
session(sessionId: string): CDPSession | null;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | ------ | -------------- |
| sessionId | string | The session id |
**Returns:**
[CDPSession](./puppeteer.cdpsession.md) \| null
The current CDP session if it exists