This commit is contained in:
theory 2014-03-30 15:22:49 -06:00
parent ec7ea880b2
commit e6ea73ff0e
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ if(LIVE){
}
opt.run = ['./test/server'];
opt.node = {key: "temp gun key"};
web(opt);
console.log("Gun @ "+ opt.port);

View File

@ -173,7 +173,7 @@ module.exports = require('theory')
var where = a.text.is(m.where)? m.where : m.where.at;
if(m.how.gun === 3){
shot.shell(m.what._['%']||where, function(g,e){
shot.pump.action(g, m, function(){
shot.pump.action(g, m, function(){ // receive custom edited copy here and send it down instead.
if(opt.src && opt.src.reply){
m.what = a.fns.is(g)? g() : {};
m.how.gun = -(m.how.gun||3);

View File

@ -6,7 +6,8 @@ module.exports=require('theory')
});
return shot.spray(function(g, m, done){
console.log('>>>>>>>>>> gun');
done();
var gPrime = {};
done(gPrime); // allow me to send custom modified filtered version
console.log(g());
});
}