MCPcopy Create free account
hub / github.com/editablejs/editable / readSyncStep2

Function readSyncStep2

packages/yjs-protocols/src/sync.ts:77–84  ·  view source on GitHub ↗
(decoder: decoding.Decoder, doc: Y.Doc, transactionOrigin: any)

Source from the content-addressed store, hash-verified

75 * @param {any} transactionOrigin
76 */
77export const readSyncStep2 = (decoder: decoding.Decoder, doc: Y.Doc, transactionOrigin: any) => {
78 try {
79 Y.applyUpdateV2(doc, decoding.readVarUint8Array(decoder), transactionOrigin)
80 } catch (error) {
81 // This catches errors that are thrown by event handlers
82 console.error('Caught error while handling a Yjs update', error)
83 }
84}
85
86/**
87 * @param encoder

Callers 1

readSyncMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…