title: Strophe.js: checking internet connection
body: <p>I want to do a background check, which will be every minute to check the Internet connection. If it interrupted then I show a message and try to reconnect. How do I do this?</p>