"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[68109],{3905:(e,t,n)=>{n.d(t,{Zo:()=>l,kt:()=>f});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},l=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),f=o,m=d["".concat(c,".").concat(f)]||d[f]||u[f]||a;return n?r.createElement(m,s(s({ref:t},l),{},{components:n})):r.createElement(m,s({ref:t},l))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,s=new Array(a);s[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i.mdxType="string"==typeof e?e:o,s[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>c,toc:()=>l});n(67294);var r=n(3905);function o(){return o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const s={sidebar_label:"CDPSession.detach"},i="CDPSession.detach() method",c={unversionedId:"api/puppeteer.cdpsession.detach",id:"version-20.9.0/api/puppeteer.cdpsession.detach",title:"CDPSession.detach() method",description:"Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages.",source:"@site/versioned_docs/version-20.9.0/api/puppeteer.cdpsession.detach.md",sourceDirName:"api",slug:"/api/puppeteer.cdpsession.detach",permalink:"/api/puppeteer.cdpsession.detach",draft:!1,tags:[],version:"20.9.0",frontMatter:{sidebar_label:"CDPSession.detach"},sidebar:"api",previous:{title:"CDPSession.connection",permalink:"/api/puppeteer.cdpsession.connection"},next:{title:"CDPSession.id",permalink:"/api/puppeteer.cdpsession.id"}},p={},l=[{value:"Signature:",id:"signature",level:4}],u={toc:l};function d(e){var{components:t}=e,n=a(e,["components"]);return(0,r.kt)("wrapper",o({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",o({},{id:"cdpsessiondetach-method"}),"CDPSession.detach() method"),(0,r.kt)("p",null,"Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages."),(0,r.kt)("h4",o({},{id:"signature"}),"Signature:"),(0,r.kt)("pre",null,(0,r.kt)("code",o({parentName:"pre"},{className:"language-typescript"}),"class CDPSession {\n detach(): Promise;\n}\n")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Returns:")),(0,r.kt)("p",null,"Promise","<","void",">"))}d.isMDXComponent=!0}}]);