The doc define a timeout for each of the op
setTimeout(function() {
if (this.cachedOps[0] === op) this.cachedOps.shift();
}.bind(this),
this.cachedOpsTimeout)
- After a
this.cachedOps.length = 0 we could already clear them.
- Running the unit tests take the time of the tests + the cachedOpsTimeout duration, it seams quite complicated to call destroy() on all docs when we close the sharedb server so at least it should be possible to redefine cachedOpsTimeout globaly.
The doc define a timeout for each of the op
this.cachedOps.length = 0we could already clear them.