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(){///}); } 


Popular posts from this blog

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -