Interface: GuestEndpointHooks
Defined in: src/batteries/isolation/protocol.ts:279
Hooks GuestEndpoint invokes for the guest server (serve.ts) to react to.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
onCall? | (id: string, method: string, args: WireValue[], signal: AbortSignal) => void | A call envelope arrived — resolve/reject settle with the method's outcome. | src/batteries/isolation/protocol.ts:281 |
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:289 |
onShutdown? | () => void | A shutdown envelope arrived. | src/batteries/isolation/protocol.ts:287 |
onStreamCancel? | (id: string, reason?: WireValue) => void | A stream:cancel envelope arrived for an open stream id. | src/batteries/isolation/protocol.ts:285 |
onStreamStart? | (id: string, stream: string, args: WireValue[], signal: AbortSignal) => void | A stream:start envelope arrived — the handler pushes deltas via the returned sink. | src/batteries/isolation/protocol.ts:283 |