Stone.js API
    Preparing search index...
    • Class decorator: enable the event bus with a single cloud connection, declaratively.

      @EventBus({ driver: 'eventbridge' }) registers the EventBusServiceProvider, adds the connection, and defaults emit to both local and that connection so the same code works in a monolith and distributed. For richer setups, configure stone.eventBus via @Configuration() (or the imperative eventBusBlueprint).

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      @EventBus({ driver: 'eventbridge', source: 'my.app' })
      @StoneApp({ name: 'app' })
      export class Application {}