We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3cd072 commit fdbadd6Copy full SHA for fdbadd6
lib/stomp.js
@@ -131,6 +131,9 @@ function _setupListeners(stomp) {
131
if (utils.really_defined(stomp["client-id"])) {
132
headers["client-id"] = stomp["client-id"];
133
}
134
+ if (utils.really_defined(stomp["vhost"])) {
135
+ headers["host"] = stomp["vhost"];
136
+ }
137
stomp_connect(stomp, headers);
138
139
@@ -258,6 +261,9 @@ function Stomp(args) {
258
261
this.ssl_validate = args['ssl_validate'] ? true : false;
259
262
this.ssl_options = args['ssl_options'] || {};
260
263
this['client-id'] = args['client-id'] || null;
264
+ if(typeof args.vhost !== 'undefined'){
265
+ this.vhost = args['vhost'] ;
266
267
};
268
269
// ## Stomp is an EventEmitter
0 commit comments