transformChannelOutboundMessages
Given a channel with outbound messages of type T and a function of type U => T, returns a new
channel with outbound messages of type U.
Type Parameters
| Type Parameter |
|---|
TNewOutboundMessage |
TOutboundMessage |
TInboundMessage |
Parameters
| Parameter | Type |
|---|---|
channel | RpcSubscriptionsChannel<TOutboundMessage, TInboundMessage> |
transform | (message) => TOutboundMessage |
Returns
RpcSubscriptionsChannel<TNewOutboundMessage, TInboundMessage>