aciidgh / SwiftMQTT

MQTT Client in pure swift ❤️
MIT License
270 stars 71 forks source link

Session status connected/disconnected #12

Open netgfx opened 7 years ago

netgfx commented 7 years ago

Is there a way to have a permanent state of the session to show connected or disconnected?

In order to check this state to determine whether or not we need to reconnect to the broker.

bhargavg commented 7 years ago

As of Ver2.0.0, there is no property on MQTTSession to identify whether the session is active or not.

PRs are welcome 😀