Interface: HostEndpointHooks
Defined in: src/batteries/isolation/protocol.ts:125
Callback surface for observing host-endpoint lifecycle and guest-originated events.
Remarks
Hooks are notifications only; dispatch and correlation remain owned by the endpoint.
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:133 |
onEvent? | (channel: string, payload: WireValue) => void | An event envelope arrived for channel. | src/batteries/isolation/protocol.ts:129 |
onHostcall? | (id: string, method: string, args: WireValue[]) => void | A guest-to-host capability request arrived. It is deliberately independent of call. | src/batteries/isolation/protocol.ts:131 |
onReady? | (info: { encoderAvailable: boolean; }) => void | The guest's ready envelope arrived. | src/batteries/isolation/protocol.ts:127 |