Skip to main content

eventBus.on

In-memory events handler that listens for a CUD events. Parameters
  • eventName: string;
    Events names to listen.
    Valid format: ${collectionName}.created, ${collectionName}.updated, ${collectionName}.deleted.
  • handler: InMemoryEventHandler;
Returns void.

eventBus.once

In-memory events handler that listens for a CUD events. It will be called only once. Parameters
  • eventName: string;
    Events names to listen.
    Valid format: ${collectionName}.created, ${collectionName}.updated, ${collectionName}.deleted.
  • handler: InMemoryEventHandler;
Returns void.

eventBus.onUpdated

In-memory events handler that listens for specific fields updates. It will be called when one of the provided properties updates. Parameters Returns void.