robhogan / react-native-paho-mqtt

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

unsubscribe #30

Open rogueturnip opened 5 years ago

rogueturnip commented 5 years ago

Hello,

So I'm trying to handle reconnects using Appstate because the reconnect flag isn't supported in connection options and I'm getting some weirdness with the unsubscribe.

I unsubscribe from all the topics before I do a disconnect but when I bring the app back to active I get errors on Unsubscribe timed out and then Subscribe timed out.

In addition I'm getting errors on the connection saying it's still connected even though I did a disconnect.

Anyone seeing this? Maybe if someone had a code example of working disconnect and unsubscribe that might help, it's not in the readme.

Thank!

Tony

runandrew commented 5 years ago

@rogueturnip Did you find a solution? I'm seeing Unsubscribe timed out. every time I try to unsubscribe from a topic.