late join works (also when activating garbage collector), added some tests to verify (havent tested for large >500 operations)

This commit is contained in:
Kevin Jahns
2015-10-12 15:17:12 +02:00
parent 9c4074e3e3
commit e32aef4c9f
10 changed files with 178 additions and 83 deletions

View File

@@ -156,13 +156,13 @@ class AbstractConnector {
var currentStateSet = yield* this.getStateSet()
yield* this.applyDeleteSet(m.deleteSet)
var ds = yield* this.getDeleteSet()
var ops = yield* this.getOperations(m.stateSet)
ops = JSON.parse(JSON.stringify(ops)) // TODO: don't do something like that!!
conn.send(sender, {
type: 'sync step 2',
os: ops,
stateSet: currentStateSet,
deleteSet: yield* this.getDeleteSet()
deleteSet: ds
})
if (this.forwardToSyncingClients) {
conn.syncingClients.push(sender)