MQTT-Client-Framework icon indicating copy to clipboard operation
MQTT-Client-Framework copied to clipboard

Extension for MQTTSessionManagerDelegate

Open Corotata opened this issue 7 years ago • 1 comments
trafficstars

let user to decide wheather trigger reconnect,sometime when error.code == MQTTSessionErrorConnackBadUsernameOrPassword | MQTTSessionErrorConnackServeUnavailable,reconnect is unnecessary.

Corotata avatar Dec 12 '17 09:12 Corotata

I think your use case sounds reasonable to be implemented. I feel like didTriggerDelayedReconnectWithErrorshould be renamed to shouldTriggerDelayedReconnectForError or something like that.

I would also reverse condition so that we don't have empty if and we need some tests around this.

jcavar avatar Dec 14 '17 07:12 jcavar