Skip to main content
zerotal

Documentation


Documentation / @zerotal/devtools / index / startDevtoolsStream

Function: startDevtoolsStream()

startDevtoolsStream(): () => void

Defined in: devtools/src/DevtoolsInjectionMiddleware.ts:72

Bridge the trace store to connected panels. Called by DevtoolsProvider on boot rather than at module scope — subscribing on import would tie the stream to whichever store existed at import time, before the provider has built the one the app's config asks for.

Returns

A disposer that unsubscribes and drops connected clients.

() => void