Skip to content
1 min read · 118 words

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

PropertyTypeDescriptionDefined in
onEnvelope?(dir: "in" | "out", envelope: WireEnvelope) => voidAny envelope was sent (dir: 'out') or received (dir: 'in') — for wire tracing.src/batteries/isolation/protocol.ts:101
onEvent?(channel: string, payload: WireValue) => voidAn event envelope arrived for channel.src/batteries/isolation/protocol.ts:99
onReady?(info: { encoderAvailable: boolean; }) => voidThe guest's ready envelope arrived.src/batteries/isolation/protocol.ts:97