Socket.IO implementation