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

24 lines
499 B
Markdown
Raw Normal View History

---
sidebar_label: Connection.fromSession
---
# Connection.fromSession() method
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class Connection {
static fromSession(session: CDPSession): Connection | undefined;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | --------------------------------------- | ----------- |
| session | [CDPSession](./puppeteer.cdpsession.md) | |
**Returns:**
[Connection](./puppeteer.connection.md) \| undefined