fixed some broken code in /routes/socket.js