MQTT
MQTT is currently available through the generators (channels):
| Languages | publish | subscribe | 
|---|---|---|
| TypeScript | ✅ | ✅ | 
All of this is available through AsyncAPI.
⚠️ Important: MQTT v5 Required for Headers
When using headers with MQTT, you MUST configure your MQTT client to use protocol version 5:
// ✅ REQUIRED for header support
const client = await MqttClient.connectAsync("mqtt://0.0.0.0:1883", { 
  protocolVersion: 5 
});
// ❌ Will NOT work with headers (defaults to MQTT v3.1.1)
const client = await MqttClient.connectAsync("mqtt://0.0.0.0:1883");
Why MQTT v5 is Required:
- MQTT v3.1.1 (default) does not support user properties
- MQTT v5 introduces user properties which are used for header transmission
- Both publish and subscribe operations require MQTT v5 for full header functionality
Channels
Read more about the channels generator here before continuing.
This generator provides support functions for each resource ensuring you the right payload and parameter are used.
| Input (AsyncAPI) | Using the code | 
|---|---|
|  |  |