socket.io - Difference between events close and disconnect Socket I/O -
on server side there 2 events namely close
, disconnect
. difference between two. how , when fired respectively. here doc on socket.io
io.sockets.on('connection', function(client){ client.on('disconnect', function(){ /// }); client.on('close', function(){///}); }