MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / notifyOfExternalUpdate

Method notifyOfExternalUpdate

lib/value.ts:64–71  ·  view source on GitHub ↗

* Notify observers of a new value. * * @param {*} value New value

(value: ValueType)

Source from the content-addressed store, hash-verified

62 * @param {*} value New value
63 */
64 notifyOfExternalUpdate(value: ValueType): void {
65 if (typeof value !== 'undefined' &&
66 value !== null &&
67 value !== this.lastValue) {
68 this.lastValue = value;
69 this.emit('update', value);
70 }
71 }
72}
73
74declare namespace Value {

Callers 4

setMethod · 0.95
constructorMethod · 0.80
constructorMethod · 0.80
callbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected