mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
yah
This commit is contained in:
parent
ec7ea880b2
commit
e6ea73ff0e
1
init.js
1
init.js
@ -18,6 +18,7 @@ if(LIVE){
|
||||
}
|
||||
|
||||
opt.run = ['./test/server'];
|
||||
opt.node = {key: "temp gun key"};
|
||||
|
||||
web(opt);
|
||||
console.log("Gun @ "+ opt.port);
|
2
shots.js
2
shots.js
@ -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);
|
||||
|
@ -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());
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user