Expand collab, network-stack, messaging, storage, pear, and experimental modules
Add manual helpers: overlay topology neighbor management, stream chunker drainAll, whiteboard and line-lock clear, fork picker and cursor presence bulk ops, anycast unregister, bandwidth broker reset, log gossip filtering, bee tombstone clear, gossip mesh clearSeen, update gossip unsubscribeAll, congestion throttled peers, histogram reset, preflight cancelAll, sticky session clearAll, gravity well and collab room bulk helpers, stream resume reset, stream transform clearPending, entropy spiral advanceBatch, and related list/clear utilities. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -91,6 +91,22 @@ class HyperP2PGravityWell extends EventEmitter {
|
||||
return this._sink.slice(0, Math.max(0, n | 0))
|
||||
}
|
||||
|
||||
wellIds () {
|
||||
return [...this._wells.keys()]
|
||||
}
|
||||
|
||||
clearSink () {
|
||||
const n = this._sink.length
|
||||
this._sink = []
|
||||
return n
|
||||
}
|
||||
|
||||
clearWells () {
|
||||
const n = this._wells.size
|
||||
this._wells.clear()
|
||||
return n
|
||||
}
|
||||
|
||||
async ready () {
|
||||
if (this.swarm || !this.topic) return this
|
||||
await initModuleSwarm(this, {
|
||||
|
||||
Reference in New Issue
Block a user