title: Socket.io socket.disconnect();
body: <p>Does anyone know where I should put the socket.disconnect function? My server code:</p>
  
  <pre><code>io.on('connection', function(socket){
  
  }
  </code></pre>
  
  <p>If I put the socket.disconnect(); function inside, it disconnects immediately. Does anyone know how to handle it?</p>
  
  <p>EDIT:
  I do not want to use socket.on('disconnect', function(){});</p>