Options
All
  • Public
  • Public/Protected
  • All
Menu

EventSubscriptionVendor stores a set of EventSubscriptions that are subscribed to a particular event type.

Hierarchy

  • EventSubscriptionVendor

Index

Constructors

Methods

  • Adds a subscription keyed by an event type.

    Parameters

    Returns EventSubscription

  • Returns the array of subscriptions that are currently registered for the given event type.

    Note: This array can be potentially sparse as subscriptions are deleted from it when they are removed.

    Parameters

    • eventType: string

    Returns EventSubscription[]

  • removeAllSubscriptions(eventType?: string): void
  • Removes a bulk set of the subscriptions.

    Parameters

    • Optional eventType: string

      Optional name of the event type whose registered supscriptions to remove, if null remove all subscriptions.

    Returns void

  • removeSubscription(subscription: any): void
  • Removes a specific subscription. Instead of calling this function, call subscription.remove() directly.

    Parameters

    • subscription: any

    Returns void

Generated using TypeDoc