Connectum API Reference / @connectum/events / types / EventAdapterFactory
Type Alias: EventAdapterFactory
EventAdapterFactory = () =>
EventAdapter
Defined in: packages/events/src/types.ts:148
A zero-argument factory producing a fresh EventAdapter.
Used where each consumer needs its OWN broker connection — e.g. createBroadcastSubscribers invokes it once per reactor so every reactor bus gets an independent connection / durable consumer.
DI guidance: for wiring a service, prefer injecting an EventAdapter INSTANCE (constructed at the composition root) — a test double with its own configuration does not fit a zero-argument factory signature without a wrapper closure. Reach for the factory only where per-consumer connections are the point. Since 1.3.0.
