output
    Preparing search index...

    Function on

    • Register a handler to be invoked when a given event happens

      Parameters

      • eventName: string

        The name of the event to subscribe

      • handler: (payload: object) => void

        Function called with the event payload

      Returns void