Expand pear-platform, observability, messaging, and network module APIs

Add batch parse, registry, log filtering, stream helpers, routing utilities, handshake management, and related clear/list/count methods across shorter modules.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:12:42 -04:00
co-authored by Cursor
parent b663b5413c
commit c3b112f435
26 changed files with 278 additions and 4 deletions
@@ -87,6 +87,16 @@ class HyperP2PMultipathFanout extends EventEmitter {
return n
}
clearAll () {
const n = this._pending.size
this._pending.clear()
return n
}
pendingCount () {
return this._pending.size
}
getStats () {
return { ...this._stats, pending: this._pending.size, protocol: PROTOCOL }
}