EventSubscription represents a subscription to a particular event. It can remove its own subscription.

interface EventSubscription {
    new EventSubscriptionnew (subscriber): EventSubscription;
    eventType: string;
    key: number;
    subscriber: EventSubscriptionVendor;
    remove(): void;
}

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

eventType: string
key: number

Methods

  • Removes this subscription from the subscriber that controls it.

    Returns void