title: nodejs socket.io : How to reconnect socker after socket.disconnect() is called?
body: <p>How can I connect to socket again after I call disconnect</p>
  
  <p>Here is the client source code</p>
  
  <pre><code>socket = io.connect('http://myServer:1339'); // connect socket
  socket.disconnect(); // disconnect socket
  socket = io.connect('http://myServer:1339'); // does not connect socket again !
  </code></pre>
  
  <p>Why do I call disconnect ?</p>
  
  <p>Because I have myServer and myServer2 servers. If I switch between myserver and myserver2, I got many sockets connections (like adding)</p>
  
  <p>Any idea on how to clearly close a socket and open a new one ?</p>
  
  <p>Regards</p>