title: Socket.io connect with server offline
body: <p>How do I detect if the server is offline, or for some other reason cannot connect. My code looks something like this.</p>
  
  <pre><code>this.socket = io.connect(connectionInfo, {
      reconnect:false
  });
  </code></pre>
  
  <p>It does not throw any error, so a try/catch clause is not working. </p>