cloudevents / sdk-go

Go SDK for CloudEvents
https://cloudevents.github.io/sdk-go/
Apache License 2.0
837 stars 223 forks source link

Reconnect to the MQTT brokers when the network connection drops #940

Open yanmxa opened 1 year ago

yanmxa commented 1 year ago

The current MQTT protocol is just a basic implementation. Since the network link between the MQTT broker and the client might drop, we need to detect it and re-establish the connection.

Ref: https://github.com/eclipse/paho.golang/issues/26

Auto connection sample: https://github.com/eclipse/paho.golang/tree/master/autopaho