feat(media-streaming,pubsub): expand helper swarm and chunk scheduler APIs
Hyper-P2P Module Tests / unit-all (push) Failing after 1h20m44s

- helper-swarm-coordinator: autoAssign, rebalance, resetUtilization
- chunk-scheduler-media: enqueueBatch, dropBelowPriority, clear
- qos-topic: queueDepths, clearQueues
- Update routing-advanced category README highlights

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 02:21:32 -04:00
co-authored by Cursor
parent 1811e9d969
commit 26ca05031a
3 changed files with 50 additions and 0 deletions
@@ -75,6 +75,19 @@ class HyperP2PQosTopic extends EventEmitter {
hasHandler (channel) { return this._handlers.has(channel) }
queueDepths () {
return this._queues.map((q, qos) => ({ qos, depth: q.length }))
}
clearQueues () {
let n = 0
for (const q of this._queues) {
n += q.length
q.length = 0
}
return n
}
_onGossip (data) {
if (!data || data.type !== 'qos-publish') return
this._stats.gossipIn++