title: socket.io client connect disconnect
body: <p>I am unable to figure out why disconnecting / connecting a socket.io connection multiple times is not working ?</p>
  
  <p>Server side code:</p>
  
  <pre><code>io.on('connection', function(socket){
      console.log('a user connected');
      socket.on('disconnect', function(){
          console.log('user disconnected');
      });
  });
  </code></pre>
  
  <p>Client side code:</p>
  
  <pre><code>var socket = io();
  socket.on('connect', function() {
      console.log("connected from the client side");
  });
  $('#connect_button').click(function(){
      socket.connect();
  });
  $('#disconnect_button').click(function(){
      socket.disconnect();
  });
  </code></pre>
  
  <p>It disconnects alright. But doesn't reconnect. I'm using Socket.io 1.0. Please help.</p>