Skip to content

pribor/rabbitmq-web-stomp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Instructions on how to install a plugin into RabbitMQ broker:

About

No description, website, or topics provided.

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-MPL-RabbitMQ

Stars

Watchers

Forks

Packages

No packages published