aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
305 stars 96 forks source link

Calling xmpp.disconnect() doesn't appear to terminate connection. #121

Closed fostahgix closed 4 years ago

fostahgix commented 4 years ago

Platform: Android XMPP Server: Openfire 4.2.3 Client: Latest react-native-xmpp(forked)

Issue: After calling XMPP.disconnect() on an active connection/session, it does not appear to terminate the connection.

In my openfire admin, I see an active session for the user I was logged in as. And presence stays online.

Has this happened to anyone else?

fostahgix commented 4 years ago

This was due to the connected event not emitting and setting the isConnected flag in the index.js file. This was a forked version so this is probably not relevant to master. Closing the issue.