The default connection name.
The default emit targets.
Resolve a connection by name (defaults to the default connection).
Optionalname: string
The connection name.
The resolved connection.
Optionalpayload: TWhether a connection (instance or factory) is registered under the name.
The connection name.
True if registered.
Register a ready-made connection.
The connection name.
The connection.
This manager for chaining.
Register a lazy factory for a connection (built on first access).
The connection name.
The connection factory.
This manager for chaining.
Set the default connection name.
The connection name.
This manager for chaining.
Set the default emit targets.
The target connection names.
This manager for chaining.
StaticcreateCreate an EventBusManager.
The default connection name.
The default emit targets.
A new manager.
StaticgetThe process-wide default manager, if the bus has been booted.
The manager, or undefined.
StaticsetRegister (or replace) the process-wide default manager.
Optionalmanager: EventBusManager
The manager (or undefined to clear).
Multi-connection event bus.
Publishes to one or more target connections (
emit(name, payload, { targets: ['local','cloud'] })), so the same domain code reaches in-process listeners in a monolith and a cloud bus when distributed. A process-wide default instance lets adapters (the listener side) reach it without wiring.