Javascript send message

Sending message to local server via web socket.