I want to do something like:
var room = io.sockets.in(\'some super awesome room\'); room.on(\'join\', function () { /* stuff */ }); room.on(\'leave\', functi
You can use the native "disconnect" event.
socket.on('disconnect', function () { io.sockets.emit('user disconnected'); });