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

Method addSubscriber

lib/thing.ts:541–543  ·  view source on GitHub ↗

* Add a new websocket subscriber. * * @param {Object} ws The websocket

(ws: Subscriber)

Source from the content-addressed store, hash-verified

539 * @param {Object} ws The websocket
540 */
541 addSubscriber(ws: Subscriber): void {
542 this.subscribers.add(ws);
543 }
544
545 /**
546 * Remove a websocket subscriber.

Callers 1

wsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected