Closed rhannequin closed 11 years ago
With client.say(to, app[cmd].apply(app, params));, it is impossible to return value from asynchrone calls.
client.say(to, app[cmd].apply(app, params));
var app = { ... foo: function() { myFunc({ url: 'http://foo.com', done: function (res) { /* I want to send `res` to my client */ } }); } ... }
With
client.say(to, app[cmd].apply(app, params));
, it is impossible to return value from asynchrone calls.