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

Method subscribe

projects/runtime-client/src/client.ts:307–313  ·  view source on GitHub ↗
(listener: NotificationListener)

Source from the content-addressed store, hash-verified

305 }
306
307 subscribe(listener: NotificationListener): () => void {
308 this.listeners.add(listener)
309 void this.connect()
310 return () => {
311 this.listeners.delete(listener)
312 }
313 }
314
315 async close(): Promise<void> {
316 this.disposeMessageListener?.()

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected