Steve Kamerman
Steve Kamerman
Thanks for checking into it @Florimond - I constructed a similar test, which ran successfully for several weeks and reconnected correctly after disconnects (which I introduced with iptables). In my...
Interesting, this certainly looks related, thanks!
I think I've found the issue that's been haunting me, and it's with my code: ```go func ConnectionLostHandler(client *emitter.Client, reason error) { log.Println("Emitter connection lost, reconnecting. Reason: ", reason.Error()) emitterClient.Disconnect(100...
Good question! The paho documentation says that it "does not tell the server to clear the session when you reconnect", so the idea is that the MQTT server already knows...
That is true, and I am on the fence here as well. Personally, I've moved my `Subscribe()` functions into my `OnConnect()` handlers to be sure I'm subscribed every time I...
Sorry, I was referring to my code before I used OnConnect. Now it is working properly.
Definitely, although if this is just a documentation issue, we'll need to ensure that basically every code example uses this paradigm.
Also, it's probably still nice to be able to set `CleanSession()`, so if you don't want to turn it on by default, I can just change the default to `true`...
Thanks for the response! > the fact that the Go library takes upon itself to re-subscribe is a exceptional behavior. It does not follow the rule. Agreed that we probably...
Ok, sounds good. I'll get it changed and let you know.