MCPcopy Create free account
hub / github.com/FernhillFable/cluster / opHandler

Function opHandler

test/client/doc.js:288–294  ·  view source on GitHub ↗
(op, source)

Source from the content-addressed store, hash-verified

286 doc.submitOp({p: ['list', 0], li: 2}, {source: true});
287 }
288 function opHandler(op, source) {
289 if (source) {
290 return;
291 }
292 doc.off('op', opHandler);
293 doc.submitOp({p: ['list', 0], li: 3}, {source: true});
294 }
295 doc2.submitOp({p: ['list'], oi: []}, function() {
296 doc.fetch(function() {
297 doc.on('before op', beforeOpHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected