MCPcopy
hub / github.com/yjs/yjs / disconnect

Method disconnect

tests/testHelper.js:108–111  ·  view source on GitHub ↗

* Disconnect from TestConnector.

()

Source from the content-addressed store, hash-verified

106 * Disconnect from TestConnector.
107 */
108 disconnect () {
109 this.receiving = new Map()
110 this.tc.onlineConns.delete(this)
111 }
112
113 /**
114 * Append yourself to the list of known Y instances in testconnector.

Callers 9

testInsertionsInLateSyncFunction · 0.80
testDeletionsInLateSyncFunction · 0.80
testGarbageCollectorFunction · 0.80
disconnectAllMethod · 0.80
disconnectRandomMethod · 0.80
testBasicMapTestsFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected