MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / subscribe

Method subscribe

packages/context/src/context.ts:405–407  ·  view source on GitHub ↗

* Add a context event observer to the context * @param observer - Context observer instance or function

(observer: ContextEventObserver)

Source from the content-addressed store, hash-verified

403 * @param observer - Context observer instance or function
404 */
405 subscribe(observer: ContextEventObserver): Subscription {
406 return this.subscriptionManager.subscribe(observer);
407 }
408
409 /**
410 * Remove the context event observer from the context

Callers 14

mainFunction · 0.95
openMethod · 0.45
context.unit.tsFile · 0.45
givenObserversFunction · 0.45
givenControllerObserverFunction · 0.45
givenControllerObserverFunction · 0.45
testInterceptorFunction · 0.45
_setupHandlerIfNeededMethod · 0.45
contextObservingHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 5

givenObserversFunction · 0.36
givenControllerObserverFunction · 0.36
givenControllerObserverFunction · 0.36
testInterceptorFunction · 0.36
contextObservingHandlerFunction · 0.36