diff --git a/lib/client.js b/lib/client.js index c6b851f..fd27620 100644 --- a/lib/client.js +++ b/lib/client.js @@ -96,6 +96,7 @@ function StompClient(opts) { this.tls = tlsOpts; this._retryNumber = 0; this._retryDelay = this.reconnectOpts.delay; + this.clientId = ''; return this; } @@ -240,7 +241,8 @@ StompClient.prototype.onConnect = function() { // Send the CONNECT frame var headers = { 'login': self.user, - 'passcode': self.pass + 'passcode': self.pass, + "client-id": self.clientId }; if(this.vhost && this.version === '1.1') diff --git a/package.json b/package.json index 0066dc9..078bbf5 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,17 @@ { "name": "Ryan Grenz", "email": "info@ryangrenz.com" + }, + { + "name": "Carlos Lopez", + "email": "cjlc@hotmail.com" } ], "name": "stomp-client", "description": "A STOMP protocol implementation in node.js", - "version": "0.9.0", + "version": "0.9.1", "repository": { - "url": "http://github.com/easternbloc/node-stomp-client" + "url": "http://github.com/CJX3M/node-stomp-client" }, "main": "lib/client.js", "engines": {