Skip to content

MQTT operation binding

Contains information about the server operation in MQTT.

Structure

copy

Examples

json
{
    "qos": 2,
    "retain": true,
    "messageExpiryInterval": 60,
    "bindingVersion": "0.2.0"
}

Changelog

Added

messageExpiryInterval

Lifetime of the message in seconds

json
{
    "messageExpiryInterval": { 
        "oneOf": [ 
            { 
                "type": "integer", 
                "minimum": 0, 
                "maximum": 4294967295
            }, 
            { 
                "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json"
            }, 
            { 
                "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
            } 
        ], 
        "description": "Lifetime of the message in seconds"
    } 
}