2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Connection.fromSession
|
|
|
|
---
|
|
|
|
|
|
|
|
# Connection.fromSession() method
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Connection {
|
|
|
|
static fromSession(session: CDPSession): Connection | undefined;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
<table><thead><tr><th>
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
session
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[CDPSession](./puppeteer.cdpsession.md)
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2022-08-06 14:49:20 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
[Connection](./puppeteer.connection.md) \| undefined
|