fixed socket.js for sending message