Skip to content

RemoteConnectContext

Defined in: packages/core/src/adapters/remote-browser.ts:38

What a function connect is told about the connection it is asked for.

attempt: number

Defined in: packages/core/src/adapters/remote-browser.ts:49

This connection’s attempt, from 1; each retry connects anew.


buildId: string

Defined in: packages/core/src/adapters/remote-browser.ts:41

The StoryShelf build; the same for every shard of it.


engine: BrowserName

Defined in: packages/core/src/adapters/remote-browser.ts:39


purpose: RemotePurpose

Defined in: packages/core/src/adapters/remote-browser.ts:47

render for a build or shard, extract for the parameter pre-pass, tests for .test() entries.


runId: string

Defined in: packages/core/src/adapters/remote-browser.ts:43

The shard’s own id; the build id when the render is not sharded.


optional shardIndex?: number

Defined in: packages/core/src/adapters/remote-browser.ts:45

The shard’s 1-based position in the build’s plan; undefined (never 0) when not sharded.


signal: AbortSignal

Defined in: packages/core/src/adapters/remote-browser.ts:54

Aborts while connect is pending: on timeouts.acquireMs, a cancel (user, build, render budget) and shutdown. Spent once connect resolves.