diff --git a/lib/client.js b/lib/client.js index c6b851f..5d254bf 100644 --- a/lib/client.js +++ b/lib/client.js @@ -243,6 +243,10 @@ StompClient.prototype.onConnect = function() { 'passcode': self.pass }; + if (this.version !== '1.0') { + headers['accept-version'] = '1.0,1.1'; + } + if(this.vhost && this.version === '1.1') headers.host = this.vhost;