Interface: HostEndpointHooks
Defined in: src/batteries/isolation/protocol.ts:95
Hooks HostEndpoint invokes on protocol-level events; host.ts wires these to the observability layer + guest-event fan-out. All optional.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
onEnvelope? | (dir: "in" | "out", envelope: WireEnvelope) => void | Any envelope was sent (dir: 'out') or received (dir: 'in') — for wire tracing. | src/batteries/isolation/protocol.ts:101 |
onEvent? | (channel: string, payload: WireValue) => void | An event envelope arrived for channel. | src/batteries/isolation/protocol.ts:99 |
onReady? | (info: { encoderAvailable: boolean; }) => void | The guest's ready envelope arrived. | src/batteries/isolation/protocol.ts:97 |