Expand 35 modules across encoding, consensus, experimental, messaging, pear, storage, and supercomputer APIs.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:46:02 -04:00
co-authored by Cursor
parent 5097df5c22
commit ff129d56b0
35 changed files with 237 additions and 2 deletions
@@ -336,6 +336,18 @@ class HyperP2PPresence extends EventEmitter {
return [...this.peers.keys()]
}
clearAll () {
const selfKey = b4a.toString(this.keyPair.publicKey, 'hex')
let n = 0
for (const id of this.peerIds()) {
if (id !== selfKey) {
this.peers.delete(id)
n++
}
}
return n
}
announceNow () {
this._broadcastPresence()
return this.getSelf()