Function createSimpleEventBroker
- createSimpleEventBroker(eventHandlers, onError?): SimpleEventBroker
Parameters
- eventHandlers: AbstractArvoEventHandler[]
Optional
onError: ((error: Error, event: ArvoEvent<Record<string, any>, Record<string,
| null
| string
| number
| boolean>, string>) => void)- (error, event): void
Parameters
- error: Error
- event: ArvoEvent<Record<string, any>, Record<string,
| null
| string
| number
| boolean>, string>
Returns void
Configured event broker
Factory for creating local event brokers with domain event handlers.
Example