Expand storage, transport, routing, agents, and messaging event bus modules
Add session bridge pair management, core replicator policy clear, drive mount unmount-all, relay tunnel bulk close, compact codec resetStats, peer bootstrap and noise session listing, graph and disk stripe clear, memetic clear, retry policy route management, bitfield drain, task orchestrator cancelAllPending, and distributed event bus topic/unsubscribe helpers. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -64,6 +64,19 @@ class HyperP2PSessionBridge extends EventEmitter {
|
||||
|
||||
pairCount () { return this._tokens.size }
|
||||
|
||||
hasPair (token) {
|
||||
return this._tokens.has(token)
|
||||
}
|
||||
|
||||
async removeAllPairs () {
|
||||
const ids = this.listPairs()
|
||||
let n = 0
|
||||
for (const id of ids) {
|
||||
if (await this.removePair(id)) n++
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
async removePair (token) {
|
||||
const entry = this._tokens.get(token)
|
||||
if (!entry) return false
|
||||
|
||||
Reference in New Issue
Block a user