title: How configure reconnecting in socket.io?
body: <p>I create socket.io connection with next code</p>
  
  <pre><code>var socket = new io.connect('http://localhost:8181', {
      'reconnect': true,
      'reconnection delay': 500,
      'max reconnection attempts': 50
  });
  </code></pre>
  
  <p>But when I kill server <kbd>CTRL+C</kbd> and start it again, reconnection isn't happening. But disconnect event raised on client side. What maybe reason of it?</p>