Skip to content

Function: attachDevtoolsBridge()

attachDevtoolsBridge<S, M>(client, options): () => void

Defined in: devtools/src/bridge.ts:50

Attach a postMessage bridge that lets a Chrome DevTools extension (or any external inspector) observe and control the plasma client. Non-invasive: a page that doesn’t have the extension installed still runs fine — the messages go into the void.

Returns a teardown function that removes the message listener and stops the refresh timer.

S extends Record<string, AnyTable>

M

PlasmaClient<S, M>

AttachOptions<S>

() => void