Skip to main content
Version: v10.0.0

TrpcSocketErrorOptionsType

Details of the subscription a TrpcSocketError belongs to


Import
import { TrpcSocketErrorOptionsType } from "@hyper-fetch/trpc"

Preview​

type TrpcSocketErrorOptionsType<Shape> = {
payload: unknown;
shape: Shape;
topic: string | null;
}

Structure​

TrpcSocketErrorOptionsType
NameTypeDescription
payload
unknown

Input of the failed subscription

shape
Shape

Error sent by the server, after the transformer

topic
string | null

Topic of the failed subscription, null when the error is about the whole connection