La referencia de la API está disponible solo en inglés por ahora.

DevtoolsWrapperConfig

interface
types.ts:29

Configuration for the browser DevTools store wrapper (withDevtools).

Controls how the browser agent connects to the DevTools hub, which capabilities it advertises (replay, emit), and reconnection behaviour. All fields except port are optional and have sensible defaults.

Properties

NameTypeDescription
allowEmit?booleanAllow DevTools extensions to emit events to this store.
allowReplay?booleanEnable event replay capability.
authToken?stringShared secret required by a hub that was started with one.
autoReconnect?booleanAutomatically reconnect to the hub on disconnect.
baseDelay?numberBase delay for exponential reconnection backoff (ms).
host?stringHub server host.
maxDelay?numberMaximum delay cap for reconnection backoff (ms).
maxEventBytes?numberByte cap for a single event payload or patch value.
maxReconnectAttempts?numberMaximum number of reconnection attempts before giving up.
maxSnapshotBytes?numberByte budget for a state snapshot before parts of it are omitted.
portnumberHub server port. Required.
sampling?SamplingConfigWhich events the agent forwards to the hub.
sanitize?(path: string, value: unknown) => unknownRedacts a value before it leaves the process.
socketFactory?DevtoolsSocketFactoryCustom socket factory (advanced). By default the agent opens a native browser WebSocket. Inject a different transport, e.g. an in-memory loopback for an embedded panel or a test, to connect the agent without a real network socket.
storeId?stringStore identifier presented to the hub, kept across reconnects.
throttleMs?numberThrottle interval for DevTools updates (ms). 0 disables throttling.
transport?"auto" | "bridge" | "websocket"How the agent reaches the panel.