Kit
Type aliases

PendingRpcSubscriptionsRequest

PendingRpcSubscriptionsRequest<TNotification> = object

Pending subscriptions are the result of calling a supported method on a RpcSubscriptions object. They encapsulate all of the information necessary to make the subscription without actually making it.

Calling the `subscribe(options)` method on a PendingRpcSubscriptionsRequest<TNotification> will trigger the subscription and return a promise for an async iterable that vends TNotifications.

Type Parameters

Type Parameter
TNotification

Methods

subscribe()

subscribe(options): Promise<AsyncIterable<TNotification, any, any>>

Parameters

ParameterType
optionsRpcSubscribeOptions

Returns

Promise<AsyncIterable<TNotification, any, any>>

On this page