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

Method recordNotification

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

Source from the content-addressed store, hash-verified

377 }
378
379 private recordNotification(method: string, params?: unknown): RuntimeNotification {
380 const notification: RuntimeNotification = params === undefined ? { method } : { method, params }
381 notification.cursor = String(this.nextNotificationCursor++)
382 if (this.notificationLogSize > 0) {
383 this.notificationLog.push(notification)
384 while (this.notificationLog.length > this.notificationLogSize) this.notificationLog.shift()
385 }
386 return notification
387 }
388
389 private matchesPattern(method: string, pattern: string): boolean {
390 if (pattern === "*" || pattern === method) return true

Callers 1

notifyMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected