()
| 591 | } |
| 592 | |
| 593 | public async flushPending() { |
| 594 | for (const hash of Object.keys(this.callbacks)) { |
| 595 | await this.subs.waitForKeyToLoad(hash); |
| 596 | const sub = this.subs.currentValue[hash]; |
| 597 | if (sub) { |
| 598 | await this.initSubscription(sub.query, sub.hash); |
| 599 | } else { |
| 600 | this.log.error('Missing sub for hash in flushPending', hash); |
| 601 | } |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | public onStartSyncOk(msg: StartSyncOkMsg) { |
| 606 | const subscriptionId = msg['subscription-id']; |
no test coverage detected