For AI agents: a documentation index is available at /llms.txt
Skip to main content

ConnectOptions

Properties​

PropertyTypeDescription
browserWSEndpoint?stringThe BrowserQL WebSocket endpoint to connect to. Optional when a custom transport is supplied, since the transport owns the connection.
connectTimeout?numberDeadline for opening the WebSocket, in ms. Defaults to timeout; 0 or a negative value means no deadline. Set it when operations are long but a queued session should fail fast — a large timeout would otherwise make newPage() wait that long for a worker.
timeout?numberDefault per-operation timeout in ms, and the dial deadline unless connectTimeout overrides it. Defaults to 30000.
token?string-
transport?TransportFactoryOverride the built-in WebSocket with your own transport (puppeteer-style). Called once per Browser.newPage with the endpoint URL; must resolve a ConnectionTransport that is already open. See TransportFactory.
Was this page helpful?