puppeteer/docs/api/puppeteer.cdpsession.detach.md

20 lines
336 B
Markdown
Raw Permalink Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: CDPSession.detach
---
# CDPSession.detach() method
Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages.
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class CDPSession {
abstract detach(): Promise<void>;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
Promise&lt;void&gt;