Handle browser reload socket.io
问题 There is a way in socket.io to create a timeout in the disconnected event, then check if the user has been reconnected ? The idea is to emit data / save user state in database only if the user is not reconnected after timeout Edit : Followed @Are Wojciechowski answer, I'm done with a multi tabs & F5 flood handler https://gist.github.com/foohey/7696811 回答1: There is a socket.on('disconnect', function () { ... }); . So you can just do socket.on('disconnect', function () { setTimeout(function ()