use intended message ID

This commit is contained in:
Mark Nadal
2016-09-25 18:12:26 -07:00
committed by GitHub
parent 11a390e7b2
commit 00d8fe331e

4
gun.js
View File

@@ -2054,7 +2054,7 @@
return;
}
var msg = {
'#': Gun.text.random(9), // msg ID
'#': at['#'] || Gun.text.random(9), // msg ID
'$': at.get // msg BODY
};
Tab.on(msg['#'], function(err, data){ // TODO: ONE? PERF! Clear out listeners, maybe with setTimeout?
@@ -2071,7 +2071,7 @@
}
if(false === opt.websocket || (at.opt && false === at.opt.websocket)){ return }
var msg = {
'#': Gun.text.random(9), // msg ID
'#': at['#'] || Gun.text.random(9), // msg ID
'$': at.put // msg BODY
};
Tab.on(msg['#'], function(err, ok){ // TODO: ONE? PERF! Clear out listeners, maybe with setTimeout?