Function: attachDevtoolsBridge()
Function: attachDevtoolsBridge()
Section titled “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.
Type Parameters
Section titled “Type Parameters”S extends Record<string, AnyTable>
M
Parameters
Section titled “Parameters”client
Section titled “client”PlasmaClient<S, M>
options
Section titled “options”Returns
Section titled “Returns”() => void