Skip to main content
Version: v10.0.0

getOrpcSubscriptionKey

Key of a subscription - listeners of the same topic with the same input share one server subscription. The input is read in the wire format, so values like Date or Map stay distinct.


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

Parameters​

getOrpcSubscriptionKey(topic: string, payload: unknown, serializer: StandardRPCSerializer)
Parameters
NameTypeDescription
topic
string
payload
unknown
serializer
StandardRPCSerializer

Returns​

string