####################################
Rabbitmq_web_stomp
####################################
In the pilot phase, the partner WebSocket compatibility layer SOCKJS when the Web browser and RABBITMQ (Rabbitmq-stomp) real-time communication, can be used in real-time web applications
Installation
sudo rabbitmq-plugins enable Rabbitmq_web_stomp
Test
Http://127.0.0.1:15674/stomp
Use
<script src= "Http://cdn.sockjs.org/sockjs-0.3.min.js" ></script>
<script src= "Stomp.js" ></script>
<script>
var ws = new Sockjs (' Http://127.0.0.1:15674/stomp ');
var client = Stomp.over (WS);
[...]
[...]
var on_connect = function () {
Console.log (' connected ');
};
var on_error = function () {
Console.log (' error ');
};
Client.connect (' guest ', ' guest ', On_connect, On_error, '/');
[...]
Reference:
Http://www.rabbitmq.com/web-stomp.html
RABBITMQ Concept and Environment Building (v) integration with the web