|
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[91437],{87371:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>a,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var t=r(85893),s=r(11151);const i={sidebar_label:"ConnectOptions"},o="ConnectOptions interface",c={id:"api/puppeteer.connectoptions",title:"ConnectOptions interface",description:"Signature:",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.connectoptions.md",sourceDirName:"api",slug:"/api/puppeteer.connectoptions",permalink:"/api/puppeteer.connectoptions",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"ConnectOptions"},sidebar:"api",previous:{title:"ConnectionTransport.send",permalink:"/api/puppeteer.connectiontransport.send"},next:{title:"ConsoleMessageLocation",permalink:"/api/puppeteer.consolemessagelocation"}},d={},p=[{value:"Signature:",id:"signature",level:4},{value:"Properties",id:"properties",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"connectoptions-interface",children:"ConnectOptions interface"}),"\n",(0,t.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-typescript",children:"export interface ConnectOptions extends BrowserConnectOptions\n"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Extends:"})," ",(0,t.jsx)(n.a,{href:"/api/puppeteer.browserconnectoptions",children:"BrowserConnectOptions"})]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(n.p,{children:"Property"})}),(0,t.jsx)("th",{children:(0,t.jsx)(n.p,{children:"Modifiers"})}),(0,t.jsx)("th",{children:(0,t.jsx)(n.p,{children:"Type"})}),(0,t.jsx)("th",{children:(0,t.jsx)(n.p,{children:"Description"})}),(0,t.jsx)("th",{children:(0,t.jsx)(n.p,{children:"Default"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserurl",children:"browserURL"})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:"string"})}),(0,t.jsx)("td",{}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserwsendpoint",children:"browserWSEndpoint"})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:"string"})}),(0,t.jsx)("td",{}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"headers",children:"headers"})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:"Record<string, string>"})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(n.p,{children:"Headers to use for the web socket connection."}),(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Remarks:"})}),(0,t.jsx)(n.p,{children:"Only works in the Node.js environment."})]}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"transport",children:"transport"})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"/api/puppeteer.connectiontransport",children:"ConnectionTransport"})})}),(0,t.jsx)("td",{}),(0,t.jsx)("td",{})]})]})]})]})}function a(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},75251:(e,n,r)=>{var t=r(67294),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(e,n,r){var t,i={},p=null,l=null;for(t in v
|