Skip to main content

Function: observeBus()

function observeBus(name, fn): () => void;

Watch every wire crossing the named bus, in both directions. Outbound wires are the interesting half: a post goes straight to the transport, so without this seam nothing this client says is visible to it.

Works for buses that do not exist yet — observe first, create later.

Parameters

ParameterType
namestring
fnBusObserver

Returns

() => void