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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo