getRpcSubscriptionsTransportWithSubscriptionCoalescing
Given a RpcSubscriptionsTransport, will return a new transport that coalesces identical
subscriptions into a single subscription request to the server. The determination of whether a
subscription is the same as another is based on the rpcRequest
returned by its
RpcSubscriptionsPlan. The subscription will only be aborted once all subscribers abort,
or there is an error.
Type Parameters
Type Parameter |
---|
TTransport extends RpcSubscriptionsTransport |
Parameters
Parameter | Type |
---|---|
transport | TTransport |
Returns
TTransport