Represents a message with headers to transport additional information with a message.

interface Message {
    headers: Map<string, any>;
    retain?: boolean;
}

Hierarchy (View Summary)

Properties

Properties

headers: Map<string, any>

Additional information attached to this message.

Header values must be JSON serializable. If no headers are set, the Map is empty.

retain?: boolean

Indicates whether this message is retained on the broker for late subscribers.