Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventBus

Index

Properties

Methods

Properties

Private channels

channels: object

Holds the subscriptions to apply for each channel.

Type declaration

Methods

publish

  • publish(channel: string, ...args: any[]): void
  • Runs all the callbacks for the subscriptions associated with the given channel passing any additional arguments to the callbacks themselves.

    Parameters

    • channel: string
    • Rest ...args: any[]

    Returns void

subscribe

  • subscribe(channel: string, subscription: ISubscription): function
  • adds a subscription for the given channel. The callback in the subscription is run when a process publishes to the given channel.

    Parameters

    Returns function

      • (): void
      • Returns void

Generated using TypeDoc