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

Method subscribeToChanges

projects/openade-client/src/index.ts:194–198  ·  view source on GitHub ↗
(onEvent: (notification: RuntimeNotification) => void)

Source from the content-addressed store, hash-verified

192 }
193
194 subscribeToChanges(onEvent: (notification: RuntimeNotification) => void): () => void {
195 return this.options.runtime.subscribe((notification) => {
196 if (isOpenADENotification(notification)) onEvent(notification)
197 })
198 }
199
200 close(): void {
201 this.options.runtime.close()

Callers

nothing calls this directly

Calls 3

isOpenADENotificationFunction · 0.85
subscribeMethod · 0.65
onEventFunction · 0.50

Tested by

no test coverage detected