The cluster event emitter interface.

interface IClusterEventEmitter {
    on: ClusterOnFunction;
    off(): void;
    off(event): void;
    off(events): void;
}

Hierarchy (view full)

Properties

Methods

Properties

Allows listening to events published on the cluster.

Type Param: U

Any of the events defined in IClusterEvents.

Param: event

One of the events defined in IClusterEvents.

Param: listener

The callback when the event is received. Listeners' payload are defined in IClusterEvents.

Methods

  • Unsubscribe from all events on the cluster

    Returns void

  • Unsubscribe to an event.

    Parameters

    • event: string

      The event to unsubscribe from.

    Returns void

  • Unsubscribe from all events, or a specific list of events.

    Parameters

    • events: string[]

      The list of events to unsubscribe from.

    Returns void

Generated using TypeDoc