ConnectOptions
Properties
| Property | Type | Description |
|---|---|---|
browserWSEndpoint? | string | The BrowserQL WebSocket endpoint to connect to. Optional when a custom transport is supplied, since the transport owns the connection. |
connectTimeout? | number | Deadline 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? | number | Default per-operation timeout in ms, and the dial deadline unless connectTimeout overrides it. Defaults to 30000. |
token? | string | - |
transport? | TransportFactory | Override 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?