transformChannelInboundMessages
Given a channel with inbound messages of type T and a function of type T => U, returns a new
channel with inbound messages of type U.
Note that this only affects messages of type "message" and thus, does not affect incoming error
messages.
Type Parameters
| Type Parameter |
|---|
TOutboundMessage |
TNewInboundMessage |
TInboundMessage |
Parameters
| Parameter | Type |
|---|---|
channel | RpcSubscriptionsChannel<TOutboundMessage, TInboundMessage> |
transform | (message) => TNewInboundMessage |
Returns
RpcSubscriptionsChannel<TOutboundMessage, TNewInboundMessage>