mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
gonna stop doing commit messages for in-prod test/tweaks/debugging
This commit is contained in:
parent
5d11aaa37a
commit
e95625e8e8
4
gun.js
4
gun.js
@ -1145,7 +1145,7 @@
|
||||
|
||||
var hear = mesh.hear = function(raw, peer){
|
||||
if(!raw){ return }
|
||||
console.log('HEAR:', (raw||'').slice(0,99));
|
||||
'string' == typeof raw && console.log('HEAR:', (raw||'').slice(0,75));
|
||||
if(opt.pack <= raw.length){ return mesh.say({dam: '!', err: "Message too big!"}, peer) }
|
||||
if(mesh === this){ hear.d += raw.length||0 ; ++hear.c } // STATS!
|
||||
var tmp = raw[0], msg;
|
||||
@ -1339,7 +1339,7 @@
|
||||
}
|
||||
// for now - find better place later.
|
||||
function send(raw, peer){ try{
|
||||
console.log('SAY:', (raw||'').slice(0,99));
|
||||
console.log('SAY:', (raw||'').slice(0,75));
|
||||
var wire = peer.wire;
|
||||
if(peer.say){
|
||||
peer.say(raw);
|
||||
|
Loading…
x
Reference in New Issue
Block a user