@cloudamqp/amqp-client
    Preparing search index...

    Type Alias ExchangePublishOptions<O>

    ExchangePublishOptions: Omit<AMQPProperties, "contentType"> & {
        confirm?: boolean;
        contentType?: O;
        mandatory?: boolean;
        routingKey?: string;
    }

    Options for AMQPExchange#publish.

    Type Parameters

    • O extends string = string

    Type declaration

    • Optionalconfirm?: boolean

      Wait for broker confirmation. Defaults to true.

    • OptionalcontentType?: O
    • Optionalmandatory?: boolean

      Ask the broker to return the message if it can't be routed to a queue. Returned messages are delivered to the session-level onreturn handler when one is configured; otherwise the default channel handler just logs them. Defaults to false.

    • OptionalroutingKey?: string

      Routing key. Defaults to "".