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

Method notify

projects/runtime/src/server.ts:370–377  ·  view source on GitHub ↗
(method: string, params?: unknown)

Source from the content-addressed store, hash-verified

368 }
369
370 notify(method: string, params?: unknown): void {
371 const notification = this.recordNotification(method, params)
372 for (const entry of this.connections.values()) {
373 if (this.matchesSubscription(notification, entry)) {
374 entry.connection.send(notification)
375 }
376 }
377 }
378
379 private recordNotification(method: string, params?: unknown): RuntimeNotification {
380 const notification: RuntimeNotification = params === undefined ? { method } : { method, params }

Callers 15

stopRuntimeMethod · 0.95
registerFunction · 0.80
startTurnFunction · 0.80
startReviewFunction · 0.80
startHyperPlanFunction · 0.80
finalizeFunction · 0.80
onSpawnFunction · 0.80
onEventFunction · 0.80
sendFunction · 0.80

Calls 3

recordNotificationMethod · 0.95
matchesSubscriptionMethod · 0.95
sendMethod · 0.65

Tested by 1

onNotificationFunction · 0.64