Update socket.js