Skip to main content
Version: v10.0.0

OrpcSocketErrorOptionsType

Details of the subscription an OrpcSocketError belongs to


Import
import { OrpcSocketErrorOptionsType } from "@hyper-fetch/orpc"

Preview​

type OrpcSocketErrorOptionsType = {
cause: unknown;
payload: unknown;
topic: string | null;
}

Structure​

OrpcSocketErrorOptionsType
NameTypeDescription
cause
unknown

What went wrong - the ORPCError the server sent, the ErrorEvent of an error event without the oRPC shape, or the error of the transport or the decoding.

payload
unknown

Input of the failed subscription

topic
string | null

Topic of the failed subscription, null when the message can't be matched to a subscription