getRpcSubscriptionsChannelWithBigIntJSONSerialization

function getRpcSubscriptionsChannelWithBigIntJSONSerialization(
    channel,
): RpcSubscriptionsChannel<unknown, unknown>;

Similarly, to getRpcSubscriptionsChannelWithJSONSerialization, this function will stringify and parse JSON message to and from the given string channel. However, this function parses any integer value as a BigInt in order to safely handle numbers that exceed the JavaScript Number.MAX_SAFE_INTEGER value.

Parameters

ParameterType
channelRpcSubscriptionsChannel<string, string>

Returns

RpcSubscriptionsChannel<unknown, unknown>

On this page