late join works (also when activating garbage collector), added some tests to verify (havent tested for large >500 operations)
This commit is contained in:
6
src/y.js
6
src/y.js
@@ -33,13 +33,13 @@ class YConfig {
|
||||
return this.connector.isSynced
|
||||
}
|
||||
disconnect () {
|
||||
this.connector.disconnect()
|
||||
return this.connector.disconnect()
|
||||
}
|
||||
reconnect () {
|
||||
this.connector.reconnect()
|
||||
return this.connector.reconnect()
|
||||
}
|
||||
destroy () {
|
||||
this.connector.disconnect()
|
||||
this.disconnect()
|
||||
this.db.destroy()
|
||||
this.connector = null
|
||||
this.db = null
|
||||
|
||||
Reference in New Issue
Block a user