Graphorin API reference v0.13.8
Graphorin API reference / @graphorin/protocol / server-message / ErrorFrame
Variable: ErrorFrame
ts
const ErrorFrame: ZodObject<{
code: ZodString;
data: ZodOptional<ZodUnknown>;
fatal: ZodOptional<ZodBoolean>;
kind: ZodLiteral<"error">;
message: ZodString;
subscriptionId: ZodOptional<ZodString>;
v: ZodLiteral<"1">;
}, "strict", ZodTypeAny, {
code: string;
data?: unknown;
fatal?: boolean;
kind: "error";
message: string;
subscriptionId?: string;
v: "1";
}, {
code: string;
data?: unknown;
fatal?: boolean;
kind: "error";
message: string;
subscriptionId?: string;
v: "1";
}>;Defined in: src/server-message.ts:157
Stable
Zod schema behind ServerErrorFrame.