Type Alias OnDemandSubscriptionHandlers<T>

OnDemandSubscriptionHandlers: {
    onError?: (err: any) => void;
    onSubscriptionCreated?: (sub: Subscription<T>) => void;
    onSubscriptionError?: (err: SubscriptionError) => void;
}

Handlers for on-demand subscription creation.

Type Parameters

  • T

Type declaration

  • OptionalonError?: (err: any) => void
  • OptionalonSubscriptionCreated?: (sub: Subscription<T>) => void
  • OptionalonSubscriptionError?: (err: SubscriptionError) => void