Kit
Type aliases

RpcSubscriptionsChannelCreator

RpcSubscriptionsChannelCreator<TOutboundMessage, TInboundMessage> = (config) => Promise<RpcSubscriptionsChannel<TOutboundMessage, TInboundMessage>>

A channel creator is a function that accepts an AbortSignal, returns a new RpcSubscriptionsChannel, and tears down the channel when the abort signal fires.

Type Parameters

Type Parameter
TOutboundMessage
TInboundMessage

Parameters

ParameterType
configReadonly<{ abortSignal: AbortSignal; }>

Returns

Promise<RpcSubscriptionsChannel<TOutboundMessage, TInboundMessage>>

On this page