Array of event handlers to register with the broker
Optional
options: { Configuration options
Optional
onCallback for handling domain-specific events
Optional
onCustom error handler for broker errors
Configured SimpleEventBroker instance with handlers subscribed
Creates a local event broker configured with domain event handlers.
The broker automatically wires each handler to its source topic and propagates resulting events. Includes default error handling with console logging.
Example