File: README.md

package info (click to toggle)
rabbitmq-server 3.3.5-1.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,004 kB
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (45 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
RabbitMQ-Web-Stomp plugin
=========================

This project is a simple bridge between "RabbitMQ-stomp" plugin and
SockJS.

Once started the plugin opens a SockJS endpoint on prefix "/stomp" on
port 15674, for example a valid SockJS endpoint url may look like:
"http://127.0.0.1:15674/stomp".

Once the server is started you should be able to establish a SockJS
connection to this url. You will be able to communicate using the
usual STOMP protocol over it. For example, a page using Jeff Mesnil's
"stomp-websocket" project may look like this:


    <script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
    <script src="stomp.js"></script>
    <script>
        Stomp.WebSocketClass = SockJS;

        var client = Stomp.client('http://127.0.0.1:15674/stomp');
        var on_connect = function() {
            console.log('connected');
        };
        var on_error =  function() {
           console.log('error');
        };
        client.connect('guest', 'guest', on_connect, on_error, '/');
        [...]

See the "RabbitMQ-Web-Stomp-examples" plugin for more details.


Installation
------------

Generic build instructions are at:

 * http://www.rabbitmq.com/plugin-development.html

Instructions on how to install a plugin into RabbitMQ broker:

  * http://www.rabbitmq.com/plugins.html#installing-plugins