/*! For license information please see cd63ed9f.7ebc4a99.js.LICENSE.txt */ "use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[29332],{61913:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var s=n(85893),o=n(11151);const r={sidebar_label:"CDPSession.detach"},i="CDPSession.detach() method",c={id:"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-22.6.4/api/puppeteer.cdpsession.detach.md",sourceDirName:"api",slug:"/api/puppeteer.cdpsession.detach",permalink:"/api/puppeteer.cdpsession.detach",draft:!1,unlisted:!1,tags:[],version:"22.6.4",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"}},a={},d=[{value:"Signature:",id:"signature",level:4}];function p(e){const t={code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"cdpsessiondetach-method",children:"CDPSession.detach() method"}),"\n",(0,s.jsx)(t.p,{children:"Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages."}),"\n",(0,s.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"class CDPSession {\n abstract detach(): Promise;\n}\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,s.jsx)(t.p,{children:"Promise"})]})}function l(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},75251:(e,t,n)=>{var s=n(67294),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,n){var s,r={},d=null,p=null;for(s in void 0!==n&&(d=""+n),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(p=t.ref),t)i.call(t,s)&&!a.hasOwnProperty(s)&&(r[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===r[s]&&(r[s]=t[s]);return{$$typeof:o,type:e,key:d,ref:p,props:r,_owner:c.current}}t.Fragment=r,t.jsx=d,t.jsxs=d},85893:(e,t,n)=>{e.exports=n(75251)},11151:(e,t,n)=>{n.d(t,{Z:()=>c,a:()=>i});var s=n(67294);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]);