(decoder: decoding.Decoder, doc: Y.Doc, transactionOrigin: any)
| 75 | * @param {any} transactionOrigin |
| 76 | */ |
| 77 | export 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…