CocoaMQTT
CocoaMQTT copied to clipboard
Auto-reconnect is attempted even when the mqtt session is manually terminated by the client.
Here are some steps to reproduce:
- create a new CocoaMQTT instance
- enable autoreconnect
- connect to a broker
- trigger the CocoaMQTT.disconnect() method
- notice that the CocoaMqtt.connect() method is triggered shortly after.
Workaround I have been using:
- set autoreconnect to false
- call disconnect()
Not sure if this is intentional functionality or not.
I'm also facing the same issue. Using the same workaround as yours.