Assuming long chat conversations, the connection between Jabber chat clients is likely to get disconnected eventually.
How does one go about detecting that a connection from a Strophe.js based jabber client?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Strophe manages connection status changes through events. There appears to be no easy way to query the status of a given connection, but it’s fairly straight forward to keep track of it.
The “connect” message on a Strophe.Connection takes a function, which will then be called on any connection status change. Keep track of current status within that function.