It seems like seneca-transport doesn't support more than 2 arguments for .add / .act callbacks, which was noticed with the seneca-amqp-transport implementation of seneca-transport: https://github.com/senecajs/seneca-amqp-transport/issues/78
Example:
// listener
require('seneca')().use('seneca-amqp-transport')
.add({a:1, b:2}, function (msg, reply) {
reply(null, {z: msg.z}, 123) // <--- 3 arguments here
}).listen({type: 'amqp', pin: 'a:1,b:2', url: 'amqp://guest:guest@localhost:5672/'});
// client
require('seneca')().use('seneca-amqp-transport')
.client({type: 'amqp', pin: 'a:1,b:2', url: 'amqp://guest:guest@localhost:5672/'})
.act('a:1,b:2,z:9', console.log); // should log all arguments
It seems like seneca-transport doesn't support more than 2 arguments for .add / .act callbacks, which was noticed with the seneca-amqp-transport implementation of seneca-transport: https://github.com/senecajs/seneca-amqp-transport/issues/78
Example:
Expected output:
Actual output:
Seneca supports more than 2 arguments in act callbacks since #340.