mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
wsp should use 'in' if not found.
This commit is contained in:
parent
21257424a5
commit
436376358b
6
gun.js
6
gun.js
@ -2082,7 +2082,11 @@
|
||||
'$': at.get // msg BODY
|
||||
};
|
||||
Tab.on(msg['#'], function(err, data){ // TODO: ONE? PERF! Clear out listeners, maybe with setTimeout?
|
||||
at.gun.Back(-1).on('out', {'@': at['#'], err: err, put: data});
|
||||
if(data){
|
||||
at.gun.Back(-1).on('out', {'@': at['#'], err: err, put: data});
|
||||
} else {
|
||||
at.gun.Back(-1).on('in', {'@': at['#'], err: err, put: data});
|
||||
}
|
||||
});
|
||||
Tab.peers(peers).send(msg, {headers: {'gun-sid': Tab.server.sid}});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user