2021-12-07
2021-12-07 本文已影响0人
_陈慧敏
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);
});
};