Updated Socket.IO code example