这是我的代码:
var Stomp = require('stomp-client');
var destination = '/queue/someQueueName';
var client = new Stomp('wss://ovs.kontakt.io', 8083, 'test', '********');
client.connect(function(sessionId) {
console.log('connected');
// client.subscribe(destination, function(body, headers) {
// console.log('This is the body of a message on the subscribed queue:', body);
// });
// client.publish(destination, 'Oh herrow');
});
在我的回复中,出现以下错误:
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)