smartrent / jackalope

An opinionated MQTT client library based on Tortoise MQTT
Apache License 2.0
28 stars 5 forks source link

Implement a Hare.reconnect/0 function #10

Closed gausby closed 4 years ago

gausby commented 4 years ago

This will disconnect from the broker, add the subscriptions for re-subscription (just to make sure our world view is consistent once we get a new connection), and add the currently pending messages to the work list.

This might cause us to have a message delivered twice, but we should not drop messages.