haredo

    Interface PublishOptions

    interface PublishOptions {
        appId?: string;
        confirm?: boolean;
        contentEncoding?: string;
        contentType?: string;
        correlationId?: string;
        deliveryMode?: number;
        expiration?: string;
        headers?: Record<string, Field>;
        immediate?: boolean;
        mandatory?: boolean;
        messageId?: string;
        priority?: number;
        replyTo?: string;
        timestamp?: Date;
        type?: string;
        userId?: string;
    }

    Hierarchy

    • AMQPProperties
      • PublishOptions
    Index

    Properties

    appId?: string
    confirm?: boolean
    contentEncoding?: string

    content encoding of body, eg. gzip

    contentType?: string

    content type of body, eg. application/json

    correlationId?: string

    for RPC requests

    deliveryMode?: number

    1 for transient messages, 2 for persistent messages

    expiration?: string

    Message TTL, in milliseconds, as string

    headers?: Record<string, Field>

    custom headers, can also be used for routing with header exchanges

    immediate?: boolean
    mandatory?: boolean
    messageId?: string
    priority?: number

    between 0 and 255

    replyTo?: string

    for RPC requests

    timestamp?: Date

    the time the message was generated

    type?: string
    userId?: string
    MMNEPVFCICPMFPCPTTAAATR