Add negentropy/diff

This commit is contained in:
Jon Staab
2025-03-21 13:21:04 -07:00
parent 158f6d50f9
commit 6f0b6acddb
4 changed files with 712 additions and 13 deletions
+5 -5
View File
@@ -52,10 +52,10 @@ export class Subscribe extends (EventEmitter as new () => TypedEmitter<Subscribe
}
close() {
if (!this._closed) {
this.adapter.send(["CLOSE", this._id])
this._unsubscriber()
this._closed = true
}
if (this._closed) return
this.adapter.send(["CLOSE", this._id])
this._unsubscriber()
this._closed = true
}
}