Kit
Functions

getRpcSubscriptionsChannelWithJSONSerialization

getRpcSubscriptionsChannelWithJSONSerialization(channel): RpcSubscriptionsChannel<unknown, unknown>

Given a RpcSubscriptionsChannel, will return a new channel that parses data published to the 'message' channel as JSON, and JSON-stringifies messages sent via the send(message) method.

Parameters

ParameterType
channelRpcSubscriptionsChannel<string, string>

Returns

RpcSubscriptionsChannel<unknown, unknown>

On this page