title: How to check socket.io connection locally?
body: <p>My app is in browser, which connects to socket.io server, it works fine, but, when client disconnect for a while ( sleep for example ) , the connection will be automatically closed by server, this is the default behavior for socket.io</p>
  
  <p>How can I re-establish the connection at client side without refreshing the page? is there a status that would tell me that connection is currently off at client side? so that I re-connect when necessary?</p>
  
  <p>I can't rely on an event, I think I need to know if connection is on or off in an easy way locally .. well?</p>