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

Method addEvent

lib/thing.ts:421–424  ·  view source on GitHub ↗

* Add a new event and notify subscribers. * * @param {Object} event The event that occurred

(event: Event)

Source from the content-addressed store, hash-verified

419 * @param {Object} event The event that occurred
420 */
421 addEvent(event: Event): void {
422 this.events.push(event);
423 this.eventNotify(event);
424 }
425
426 /**
427 * Add an available event.

Callers 2

performActionMethod · 0.80
performActionMethod · 0.80

Calls 1

eventNotifyMethod · 0.95

Tested by

no test coverage detected