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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user