Expand messaging, network, consensus, and platform module APIs.

Add batch helpers, clear utilities, and count methods for qos topics, brokers, probes, leases, locks, and registry modules.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:34:42 -04:00
co-authored by Cursor
parent e62d474134
commit 67219df1e1
21 changed files with 203 additions and 0 deletions
@@ -115,6 +115,14 @@ class HyperP2PStreamMultiplex extends EventEmitter {
return this._streams.size === 0
}
clearAll () {
this.closeAll()
this._stats.frames = 0
this._stats.bytes = 0
this._stats.rejected = 0
return true
}
getStats () {
return {
...this._stats,