Skip to main content
Version: v10.0.0

OrpcSocketAdapterConfigType

Options of the OrpcStreamAdapter and OrpcWebsocketAdapter factories


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

Preview​

type OrpcSocketAdapterConfigType = {
customJsonSerializers?: StandardRPCCustomJsonSerializer[];
}

Structure​

OrpcSocketAdapterConfigType
NameTypeDescription
customJsonSerializers
StandardRPCCustomJsonSerializer[]

Serializers of custom types, the same as the customJsonSerializers option of RPCHandler and RPCLink . Both sides need the same list.