title: Node.js socket.io-client connect_failed / connect_error event
body: <p>I am playing around with node.js and socket.io-client. I am trying to connect to a channel that does not exist in order to trigger the event 'connect_failed' (as specified at <a href="https://github.com/LearnBoost/socket.io-client" rel="noreferrer">https://github.com/LearnBoost/socket.io-client</a> ).</p>
  
  <p>However I can't get the event working:</p>
  
  <pre><code>var clientio = require('socket.io-client');
  console.log('Trying stuff ...');
  
  // the channel does not exist
  var socket = clientio.connect( 'http://localhost:4000/news' );
  
  // I expect this event to be triggered
  socket.on('connect_error', function(){
      console.log('Connection Failed');
  });
  socket.on('connect', function(){
      console.log('Connected');
  });
  socket.on('disconnect', function () {
    console.log('Disconnected');
  });
  socket.send('hi there');
  </code></pre>
  
  <p>If I execute will this will happen:</p>
  
  <pre><code>$ node tmp_clientio.js 
  Trying stuff ...
  </code></pre>
  
  <p>Any ideas about how to trigger an error if connecting to a channel that does not exist?</p>
  
  <p><strong>UPDATE</strong>: Renamed <code>connect_failed</code> to <code>connect_error</code></p>