• Creates a plugin that prefixes all event names passed to an event bus adapter.

    Every method that accepts an event name will have the given prefix prepended before the call is forwarded to the underlying adapter. This is useful for namespacing events when multiple independent consumers share the same event bus backend.

    Parameters

    • prefix: string

      The string to prepend to every event name.

    Returns PluginFn<IEventBusAdapter>

    A middleware plugin that wraps an IEventBusAdapter.

    IMPORT_PATH: "@daiso-tech/core/event-bus/plugins"