Comparing version 0.6.3 to 0.6.4
@@ -137,4 +137,5 @@ (function(root, factory) { | ||
// | ||
// Automatically subscribes to the result group for you if not already | ||
// subscribed. | ||
// Assumes that the calling service will send a reply back to your channel id | ||
// so that you automatically get the reply. If that's not the case, you may | ||
// need to subscribe to the result channel. | ||
// | ||
@@ -149,5 +150,3 @@ // client.rpcSend('foo', {name: 'John'}) | ||
var send = Promise.promisify(HelpEsb.Client.prototype.send).bind(this); | ||
return this.subscribe(group + '-result').then(function() { | ||
return send(group, message, inre).then(this._checkRpcResult); | ||
}.bind(this)); | ||
return send(group, message, inre).then(this._checkRpcResult); | ||
}; | ||
@@ -184,2 +183,3 @@ | ||
replyTo: message.getMeta('id'), | ||
channel: message.getMeta('from'), | ||
inre: message.getMeta('id') | ||
@@ -186,0 +186,0 @@ }; |
{ | ||
"name": "help-esb", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "A client for the Help.com team's ESB.", | ||
@@ -5,0 +5,0 @@ "main": "help-esb.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30419