Skip to content

Class: BarHost

Defined in: core.ts:53

The host's endpoint: projects the mode engine over the wire and turns remote taps back into engine dispatches.

It holds no engine and no reactive graph — the Solid binding (solid.ts) feeds it publishBar on every commit and wires onCommand to the engine's dispatch. Kept a plain class so it is drivable with a fake send in a node test, exactly like the pencil's RemoteHost.

Constructors

Constructor

new BarHost(opts): BarHost

Defined in: core.ts:54

Parameters

opts

BarHostOptions

Returns

BarHost

Methods

publishBar()

publishBar(rows, claims, phase?): void

Defined in: core.ts:62

Project the current bar. rows is barModel()'s output (a CapView[] is a WireCap[]); the optional BarHostOptions.filter is applied here so the subset decision lives in one place. claims is the per-name status phase; phase is the engine's phase for the pill.

Parameters

rows

readonly WireCap[]

claims

Record<string, string>

phase?

string

Returns

void


receive()

receive(message): void

Defined in: core.ts:73

Parameters

message

RelayToHost

Returns

void