Expand media, agents, applications, and messaging module APIs on main.
Adds snapshot(), batch helpers, and clearAll aliases across media-streaming (20), agents-workflows, applications-collab/economy, messaging pubsub/streams/gossip. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -141,6 +141,10 @@ class HyperP2PSubscriptionLease extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
snapshot () {
|
||||
return { leases: this._leases.size, channels: this.listChannels() }
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return { ...this._stats, active: this._leases.size, protocol: PROTOCOL }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user