TrpcSocketExtraType
The
extra
of every subscription event, received by
listen
callbacks next to the
data
.
Import
import { TrpcSocketExtraType } from "@hyper-fetch/trpc"
Source
Package
Preview
type TrpcSocketExtraType = {
eventId: string | null;
payload: unknown;
}
Structure
TrpcSocketExtraType
| Name | Type | Description |
|---|---|---|
| eventId | | Id of an event yielded with
|
| payload | | Input of the subscription the event belongs to. Listeners of one procedure with different inputs are separate
subscriptions, so it tells them apart where events of every subscription meet, like
|

