Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMPP server dying kills xmpp-ftw #24

Open
lloydwatkin opened this issue May 15, 2013 · 4 comments
Open

XMPP server dying kills xmpp-ftw #24

lloydwatkin opened this issue May 15, 2013 · 4 comments

Comments

@lloydwatkin
Copy link
Member

Fix this, and ensure user is given a sensible error message.

@lloydwatkin
Copy link
Member Author

Auto-reconnect?

@lloydwatkin
Copy link
Member Author

Am currently catching unhahndled exceptions in https://github.com/lloydwatkin/xmpp-ftw-demo which prevents the system coming down for everyone but this isn't an ideal mechanism. Ideally detect + reconnect as mentioned above?

@shobhitsinghal624
Copy link
Contributor

Facing something similar. Any suggestions on how to handle xmpp server dying. Is there any way to check connection?
Also, thinking on the lines of auto-reconnect, what is the best place to handle it - the xmpp-ftw library or client side?

@lloydwatkin
Copy link
Member Author

@shobhitsinghal624 this should be handled now, please let me know if not?

Auto-reconnect I'd suggest listening for disconnect event (or similar) on whatever websocket library you are using and reconnect if you see it.

In one app we do a ping (http://xmpp.org/extensions/xep-0199.html) where we really want to ensure the connection is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants