Type Alias: HostToGuestEnvelope
ts
type HostToGuestEnvelope =
| {
args: WireValue[];
id: string;
method: string;
t: "call";
}
| {
id: string;
ok: true;
t: "hostresult";
value: WireValue | string;
}
| {
error?: WireError;
id: string;
ok: false;
t: "hostresult";
value?: string;
}
| {
id: string;
t: "abort";
}
| {
args: WireValue[];
id: string;
stream: string;
t: "stream:start";
}
| {
id: string;
reason?: WireValue;
t: "stream:cancel";
}
| {
t: "shutdown";
};Defined in: src/batteries/isolation/protocol.ts:56
Host → guest envelopes.