Fix more cba issues and add debugging data

This commit is contained in:
yflory
2020-04-16 16:03:17 +02:00
parent 026bf6a425
commit b74a4b6bb4
2 changed files with 23 additions and 2 deletions

View File

@@ -65,10 +65,12 @@ define([
sframeChan.query('Q_RT_MESSAGE', message, function (_err, obj) {
var err = _err || (obj && obj.error);
if (!err) { evPatchSent.fire(); }
console.error('cb', JSON.stringify(message));
cb(err);
}, { timeout: -1 });
});
_chainpad.onPatch(function () {
console.log('patch');
onRemote({ realtime: chainpad });
});
return _chainpad;
@@ -137,6 +139,7 @@ define([
if (isReady) {
onLocal(true); // should be onBeforeMessage
}
console.error('received', JSON.stringify(content));
chainpad.message(content);
if (isHistory && updateLoadingProgress) {
updateLoadingProgress({