var Stomp = require('./stomp.js').Stomp;
console.log(Stomp)
var url = "ws://172.16.91.161:61614/stomp";
var login = "admin";
var passcode = "admin";
var destination = "test-queue";
var client = Stomp.client(url);
var onconnect = function () {
client.subscribe(destination, function (message) {
console.log("message.body", message.body);
});
};
网友评论