Type Alias AMQPProperties

AMQPProperties: {
    appId?: string;
    contentEncoding?: string;
    contentType?: string;
    correlationId?: string;
    deliveryMode?: number;
    expiration?: string;
    headers?: Record<string, Field>;
    messageId?: string;
    priority?: number;
    replyTo?: string;
    timestamp?: Date;
    type?: string;
    userId?: string;
}

Type declaration

  • OptionalappId?: string
  • OptionalcontentEncoding?: string

    content encoding of body, eg. gzip

  • OptionalcontentType?: string

    content type of body, eg. application/json

  • OptionalcorrelationId?: string

    for RPC requests

  • OptionaldeliveryMode?: number

    1 for transient messages, 2 for persistent messages

  • Optionalexpiration?: string

    Message TTL, in milliseconds, as string

  • Optionalheaders?: Record<string, Field>

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

  • OptionalmessageId?: string
  • Optionalpriority?: number

    between 0 and 255

  • OptionalreplyTo?: string

    for RPC requests

  • Optionaltimestamp?: Date

    the time the message was generated

  • Optionaltype?: string
  • OptionaluserId?: string