fixed socket.on("message")