Expand network, consensus, observability, storage, and pear modules
Add manual helpers across connection pool release/close, health probe clear and peer listing, quorum and distributed lock bulk operations, session rotation revoke-all, reputation peer reset, flow shaper flush, circuit breaker reset-all, RPC unregister and pending count, seeder registry topic management, activity queue clear, semantic vector remove, core priority fetch pending clear, trust gate untrust-all, and process spawn kill-all. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -32,6 +32,14 @@ class RPCServer extends EventEmitter {
|
||||
this.services.set(name, { handler, schema })
|
||||
}
|
||||
|
||||
unregister (name) {
|
||||
return this.services.delete(name)
|
||||
}
|
||||
|
||||
hasService (name) {
|
||||
return this.services.has(name)
|
||||
}
|
||||
|
||||
handleConnection (socket) {
|
||||
if (this.connections.has(socket)) return
|
||||
this.connections.add(socket)
|
||||
@@ -205,6 +213,10 @@ class RPCClient extends EventEmitter {
|
||||
})
|
||||
}
|
||||
|
||||
pendingCount () {
|
||||
return this.pending.size
|
||||
}
|
||||
|
||||
async callStream (method, params = {}, timeoutMs = this.defaultTimeout) {
|
||||
const id = generateId()
|
||||
const queue = []
|
||||
|
||||
Reference in New Issue
Block a user