To utilize the MemoryEventBusAdapter, you must create instance of it.

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

Implements

Constructors

  • Parameters

    • eventEmitter: EventEmitter<DefaultEventMap> = ...

    Returns MemoryEventBusAdapter

    import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/adapters";

    const eventBusAdapter = new MemoryEventBusAdapter();

    You can also provide an EventEmitter | EventEmitter that will be used for storing the data.

    import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/adapters";
    import { EventEmitter } from "node:events";

    const eventEmitter = new EventEmitter<any>();
    const eventBusAdapter = new MemoryEventBusAdapter(eventEmitter);

Methods