createDevtoolsServer
Auto-generated API reference for createDevtoolsServer.
Function: createDevtoolsServer()
createDevtoolsServer(
options?):DevtoolsServer
Defined in: devtools.ts:44
In-process pub/sub hub for agent events. Transport-agnostic — hand
the returned attach function any object that can send envelopes
(an SSE response, a WebSocket, a test sink). Designed as the
contract a browser devtools extension speaks against.
New clients receive a hello envelope followed by a replay of the
ring buffer (so the extension can jump in mid-session and see
recent history), then replay-end, then the live feed.
#Parameters
#options?
DevtoolsServerOptions = \{\}