'reconnect to MQTT broker using Vertx library from Quarkus backend application

I'm using Vertx to connect and subscribe to MQTT broker from a Quarkus backend application, the problem is when the broker is getting restarted or the connection gets lost, the client does not reconnect automatically again, is there a way a make an automatic reconnection?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source