mobile-web-messaging / MQTTKit

MQTT Objective-C client for iOS
Apache License 2.0
462 stars 226 forks source link

Disconnection not detected properly #43

Open AmineG opened 8 years ago

AmineG commented 8 years ago

I tried to display the MQTT client status, by showing the value of "connected" Boolean. What I notice when I close any network connection, the MQTTKit does not detect the connection interruption (I tried to close wifi, and I was observing "connected" bool changes). I think some reachability checking code can be added to enhence the connection loss detection.

(If I play the same scenario with MQTTClient framework, it detect that MQTT connection is lost.)

sxhebing commented 8 years ago

I have same question!