Interface Middleware<TMessage, TReply>

Type Parameters

  • TMessage = unknown

  • TReply = unknown

Hierarchy

  • Middleware
  • Parameters

    • message: HaredoMessage<TMessage, TReply>

      The received message

    • next: (() => Promise<void>)

      A function that returns a promise for the next item in the callback stack. If you don't call it and don't ack/nack the message then it will be called for you

        • (): Promise<void>
        • Returns Promise<void>

    Returns void | Promise<void>

Generated using TypeDoc