Stone.js API
    Preparing search index...

    In-memory bus connection.

    Records every emitted message on events instead of hitting a real transport. Useful in tests and local development to assert what would have been published.

    Implements

    Index
    events: BusMessage<unknown>[] = []

    The messages emitted so far, in order.

    name: string

    A human-readable name (e.g. local, cloud, eventbridge).

    • Type Parameters

      • T = unknown

      Parameters

      • name: string
      • Optionalpayload: T

      Returns Promise<void>

    • Create a memory connection.

      Parameters

      • name: string = 'memory'

        The connection name.

      Returns MemoryEventBus

      A new connection.