Skip to main content
Version: v10.0.0

OrpcSocketExtraType

Meta of the event, passed to the listeners as extra . The server sets it with withEventMeta(value, { id, retry }) .


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

Preview​

type OrpcSocketExtraType = {
id: string | undefined;
retry: number | undefined;
}

Structure​

OrpcSocketExtraType
NameTypeDescription
id
string | undefined

Id of the event. It is sent back as last-event-id when the subscription starts again, so the server can resume

retry
number | undefined

Delay in milliseconds the server asks for before the subscription starts again after a failure