title: Get connection status on Socket.io client
body: <p>I'm using Socket.io, and I'd like to know the status of connection to the server from the client-side.</p>
  
  <p>Something like this:</p>
  
  <pre><code>socket.status // return true if connected, false otherwise
  </code></pre>
  
  <p>I need this information to give a visual feedback to the user if the connection has dropped or it has disconnected for any reason.</p>