title: Socket.io detect disconnect reason
body: <p>I am using socket.io,can I detect the disconnect reason from disconnect event ? I can see in log files like this</p>
  
  <p>info: transport end (booted)
  info: transport end (close timeout)
  info: transport end (error)</p>
  
  <p>I want to get the reason (booted,close timeout,error) I will use like this:</p>
  
  <pre><code>socket.on('disconnect', function(){
     console.log('User 1 disconnected because '+reason);
  });
  </code></pre>
  
  <p>Can I get the reason ?</p>
  
  <p>EDIT:I found the solution</p>
  
  <pre><code>socket.on('disconnect', function(reason){
     console.log('User 1 disconnected because '+reason);
  });
  </code></pre>