Hierarchy

Properties

clearListenersAfterPublish?: boolean

When true, will clear listeners after every publish. Useful for events that will only occur once.

onError?: ((error: unknown) => void)

Type declaration

    • (error: unknown): void
    • By default any errors caused by listeners will be thrown unless an error handler is specified here. For example, specifying console.error as the handler will send it to the console instead of throwing. You may want to inject a different error handler here.

      Parameters

      • error: unknown

      Returns void

reversePublish?: boolean

When true, events will be published in reverse order.

Generated using TypeDoc