getRpcSubscriptionsChannelWithJSONSerialization
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
| Parameter | Type |
|---|---|
channel | RpcSubscriptionsChannel<string, string> |
Returns
RpcSubscriptionsChannel<unknown, unknown>