Methods

Methods

  • Subscribes to an event.

    Parameters

    • eventName: string

      The name of the event which should be bound to.

    • callback: ((...payload: any[]) => void)

      The callback with the payload as argument.

        • (...payload: any[]): void
        • Parameters

          • Rest ...payload: any[]

          Returns void

    Returns EventSubscription

  • Fires the specified event with the provided payload.

    Parameters

    • eventName: string
    • Rest ...payload: any[]

    Returns void

Generated using TypeDoc