Skip to content

Commit 53f63a5

Browse files
author
Max Presman
committed
interm commit
1 parent 9670064 commit 53f63a5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/core/components/subscription_manager.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@ export default class {
181181
this._currentTimetoken = timetoken;
182182
}
183183

184+
console.log('\n ---------');
185+
console.log({ channels, current: this._currentTimetoken, stored: this._storedTimetoken });
186+
187+
184188
// reset the current timetoken to get a connect event.
185-
if (this._currentTimetoken !== '0') {
189+
if (this._currentTimetoken !== '0' && this._currentTimetoken !== 0) {
186190
this._storedTimetoken = this._currentTimetoken;
187191
this._currentTimetoken = 0;
188192
}
@@ -379,6 +383,8 @@ export default class {
379383
return;
380384
}
381385

386+
console.log('sending request w/ ' + this._currentTimetoken);
387+
382388
const subscribeArgs = {
383389
channels,
384390
channelGroups,
@@ -432,6 +438,9 @@ export default class {
432438
return;
433439
}
434440

441+
console.log(' got response from server ...');
442+
console.log({ servertimeToken: payload.metadata.timetoken, stored: this._storedTimetoken, current: this._currentTimetoken })
443+
435444
if (this._storedTimetoken) {
436445
this._currentTimetoken = this._storedTimetoken;
437446
this._storedTimetoken = null;

0 commit comments

Comments
 (0)