Expand category docs and module APIs across the library.
Manual pass adds helpers (listChannels, taskCounts, openProposals), richer getStats with protocol fields, category README hubs, and tightened api.md for core, messaging, network, routing, supercomputer, and consensus modules. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -73,6 +73,12 @@ class HyperP2PTopicChannel extends EventEmitter {
|
||||
return this._retained.get(channel) || null
|
||||
}
|
||||
|
||||
listChannels () { return [...this._subs.keys()] }
|
||||
|
||||
hasSubscription (channel) { return this._subs.has(channel) }
|
||||
|
||||
retainedCount () { return this._retained.size }
|
||||
|
||||
_deliverLocal (channel, payload, meta) {
|
||||
const handler = this._subs.get(channel)
|
||||
if (handler) {
|
||||
|
||||
Reference in New Issue
Block a user