How to send and receive data from webstomp websocket provided by rabbitmq?
<p>I am writing a chat application without explicit server side web socket.
I am using RabbitMQ webstomp as the web socket container and plain Javascript as the cleint to both send and receive data.</p>

<p>Below is the flow :
<strong>Browser</strong> -> <strong>native websocket/sockjs</strong> ->  <strong>rabbitmq /sockjs websocket</strong> (<strong>ws://127.0.0.1:15674/ws</strong> or <strong><a href="http://localhost:15674/stomp" rel="nofollow">http://localhost:15674/stomp</a></strong>) -> put messages to queue.</p>

<p>However while testing the application, I am not able to send the data directly to <strong>ws://127.0.0.1:15674/ws</strong>. I am just able to connect to it.</p>

<p>I use the below template to send and receive data on client Javascript.</p>

<ol>
<li>ws = new WebSocket('ws://127.0.0.1:15674/ws');</li>
<li>client = Stomp.over(ws);</li>
<li>client.connect('guest','guest',on_connection,on_connect_error,'/');</li>
<li>client.send(queue, {'reply-to':'/temp-queue/logs',priority: 9}, "msg" );</li>
<li>client.onreceive = func()</li>
</ol>