robhogan / react-native-paho-mqtt

react-native-paho-mqtt
91 stars 32 forks source link

Reconnect option as we have in paho-client #25

Open developercode1 opened 5 years ago

developercode1 commented 5 years ago

Hi,

Can you please add reconnect functionality to the connection params object as we have in the paho-client?

TIA

bahientn9x commented 5 years ago

same issue.

wazho commented 5 years ago

same issue here

bepehr commented 5 years ago

+1

dophlin commented 5 years ago

Same issue.

robhogan commented 5 years ago

Ok, this seems like a good candidate to add.

Just so we’re on the same page - are you (all) interested in reconnect after a network interruption while the app is in the foreground, or after the app becomes active from a suspended state? They’re slightly different problems.

dophlin commented 5 years ago

Personally, I experience the network interruption when the app state has been changed, so I prefer that the reconnect process occurs after the app becomes active from a suspended state.

bahientn9x commented 5 years ago

I think it should be when app active, because ios can't keep the connection in the background when the screen is off. Thanks for considering this

mohit-shah commented 4 years ago

Has this option been added? Where can I get a detailed documentation of the 'react-native-paho-mqtt' library (not the base library paho.mqtt)

niklaaa commented 3 years ago

Any news?