MCPcopy
hub / github.com/loopbackio/loopback-next / open

Method open

packages/context/src/context-view.ts:104–111  ·  view source on GitHub ↗

* Start listening events from the context

()

Source from the content-addressed store, hash-verified

102 * Start listening events from the context
103 */
104 open() {
105 debug('Start listening on changes of context %s', this.context.name);
106 if (this.context.isSubscribed(this)) {
107 return this._subscription;
108 }
109 this._subscription = this.context.subscribe(this);
110 return this._subscription;
111 }
112
113 /**
114 * Stop listening events from the context

Callers 5

createViewMethod · 0.95
createViewGetterFunction · 0.95
resolveAsContextViewFunction · 0.95
resolveAsViewFromConfigFunction · 0.80
constructorMethod · 0.80

Calls 2

isSubscribedMethod · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected