Book Image

RabbitMQ Essentials

By : David Dossot
Book Image

RabbitMQ Essentials

By: David Dossot

Overview of this book

Table of Contents (17 chapters)

User message


The user message schema is used to represent all user messages (user-to-user, topic, or public-announce messages), and is coded as follows:

{
    "$schema": "http://json-schema.org/draft-03/schema#",
    "$content_type": "application/vnd.ccm.pmsg.v1+json",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "time_sent": {
            "type":"string",
            "format":"utc-millisec"
        },
        "sender_id": {
            "type": "integer",
            "optional": "false"
        },
        "addressee_id": {
            "type": "integer",
            "optional": "true"
        },
        "topic": {
            "type": "string",
            "optional": "true"
        },
        "subject": {
            "type": "string",
            "optional": "false"
        },
        "content": {
            "type": "string",
            "optional": "false"
        }
    }
}