This document defines how to describe MQTT-specific information on AsyncAPI.
Current version is 0.1.0
.
This object contains information about the server representation in MQTT.
This object MUST contain only the properties defined above.
servers:
production:
bindings:
mqtt:
clientId: guest
cleanSession: true
lastWill:
topic: /last-wills
qos: 2
message: Guest gone offline.
retain: false
keepAlive: 60
bindingVersion: 0.1.0
This object MUST NOT contain any properties. Its name is reserved for future use.
This object contains information about the operation representation in MQTT.
This object MUST contain only the properties defined above.
channels:
user/signup:
publish:
bindings:
mqtt:
qos: 2
retain: true
bindingVersion: 0.1.0
This object contains information about the message representation in MQTT.
Field Name | Type | Description |
---|---|---|
bindingVersion |
string | The version of this binding. If omitted, "latest" MUST be assumed. |
This object MUST contain only the properties defined above.
channels:
user/signup:
publish:
message:
bindings:
mqtt:
bindingVersion: 0.1.0