eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

Ability to refresh connect options during automatic reconnect maybe, supporting Reconnect Handler #640

Closed tn185075 closed 1 year ago

tn185075 commented 1 year ago

Please do let me know, if this mechanism already exists.

MattBrittan commented 1 year ago

Much better way, is if we can write our own reconnect handlers

This is exactly what SetCustomOpenConnectionFn provides.

tn185075 commented 1 year ago

Will check it out, Thanks. Do you think it's possible to solve the scenario I was talking about with SetCustomOpenConnectionFn?

tn185075 commented 1 year ago

I meant to ask this question on Paho.golang repository, confused between two libraries supporting MQTT. Let me reopen there. Thank you.

tn185075 commented 1 year ago

Opened there: https://github.com/eclipse/paho.golang/issues/127