Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains event handler registrations for a script.

Access the registry through the global events object.

Hierarchy

  • EventRegistry

Index

Constructors

Properties

Methods

Constructors

Properties

handlers: {} = {}

Type declaration

Methods

  • fire(event: Event): string | void
  • newUUID(): string
  • Registers a handler to be run when a particular kind of event occurs. When Brigade receives a matching event, it will run the specified handler.

    Possible event sources depend on the gateways configured in your Brigade system, and possible event types depend on the gateway. See the Brigade and gateway documentation for details.

    Parameters

    • eventSource: string

      The event source (gateway) to register the handler for

    • eventType: string

      The event type to register the handler for

    • eventHandler: EventHandler

      The handler to run when an event with the given source and type occurs

    Returns EventRegistry

  • process(): void

Generated using TypeDoc