MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / updateSubscription

Method updateSubscription

projects/runtime/src/server.ts:488–497  ·  view source on GitHub ↗
(params: RuntimeSubscriptionUpdateParams, context: RuntimeHandlerContext)

Source from the content-addressed store, hash-verified

486 }
487
488 private updateSubscription(params: RuntimeSubscriptionUpdateParams, context: RuntimeHandlerContext): { ok: true } {
489 const entry = this.connections.get(context.connection.id)
490 if (!entry) return { ok: true }
491
492 const methods = params.methods ?? ["*"]
493 entry.subscriptions = new Set(methods.length > 0 ? methods : ["*"])
494 const cursor = params.cursor
495 if (cursor !== undefined) this.replayNotifications(entry, cursor)
496 return { ok: true }
497 }
498
499 private agentProviderStatus(params: AgentProviderIdParams): { providerId: string; connected: boolean; state: string } {
500 const providerId = params.providerId

Callers 1

constructorMethod · 0.95

Calls 2

replayNotificationsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected