MQTT_CLIENT_SHUTDOWN¶
Description¶
This iRule event is triggered when MQTT client closes TCP connection.
NOTES:
- This event is implemented only for Message Routing based MQTT Sessions
- There is no MQTT message associated with this event. Any iRule command that requires a current MQTT message will not work in this event’s context.
- This event will not trigger in case of abnormal termination of a client connection.
Following MQTT command(s) will work: MQTT::insert after
Examples¶
when MQTT_CLIENT_SHUTDOWN {
MQTT::insert after type PUBLISH topic "event/client_disconnected" payload "client disconnected"
}