Remote messaging with STOMP

STOMP enables sending of messages over a 2-way reliable network protocol,
like TCP or WebSockets. Clients can subscribe to server destinations to
receive messages, or send message directly to the server.

    var msgs = require('msgs/channels/bridges/stomp');
    var websocket = new WebSocket('ws://stomp.example.com');

    // configure STOMP bridge
    // there is also a stompNodeStreamBridge and a stompBridge depending on your needs
    msgs.stompWebSocketBridge('bridge', websocket, {
        host: 'stomp.example.com',
        login: 'guest',
        passcode: 'guest'
     });

    // subscribe to remote destinations
    msgs.on('bridge!/topic/greetings', function (greeting) {
        console.log('greeting:', greeting);
    });

    // send message to remote destinations
    msgs.send('bridge!/topic/greetings', 'hello world');

STOMP version 1.1 and 1.2 are supported. Transactions and heart-beats are
currently not supported.

see http://stomp.github.io/
see https://www.rabbitmq.com/stomp.html