createDefaultRpcSubscriptionsTransport

function createDefaultRpcSubscriptionsTransport<TClusterUrl>(
    config,
): RpcSubscriptionsTransportFromClusterUrl<TClusterUrl>;

Creates a RpcSubscriptionsTransport with some default behaviours.

The default behaviours include:

  • Logic that coalesces multiple subscriptions for the same notifications with the same arguments into a single subscription.

Type Parameters

Type Parameter
TClusterUrl extends ClusterUrl

Parameters

ParameterTypeDescription
configDefaultRpcSubscriptionsTransportConfig<TClusterUrl>

Returns

RpcSubscriptionsTransportFromClusterUrl<TClusterUrl>

On this page