MCPcopy Create free account
hub / github.com/instantdb/instant / sendResync

Method sendResync

client/packages/core/src/SyncTable.ts:530–539  ·  view source on GitHub ↗
(sub: Sub, state: SubState, txId: number)

Source from the content-addressed store, hash-verified

528 }
529
530 private sendResync(sub: Sub, state: SubState, txId: number) {
531 // Make sure we can find the hash from the subscriptionId
532 this.idToHash[state.subscriptionId] = sub.hash;
533 this.trySend(state.subscriptionId, {
534 op: 'resync-table',
535 'subscription-id': state.subscriptionId,
536 'tx-id': txId,
537 token: state.token,
538 });
539 }
540
541 private sendRemove(state: SubState, keepSubscription: boolean) {
542 this.trySend(uuid(), {

Callers 1

initSubscriptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected