MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stop

Method stop

web/rusense/services/sensing.service.js:72–79  ·  view source on GitHub ↗

Stop the service entirely.

()

Source from the content-addressed store, hash-verified

70
71 /** Stop the service entirely. */
72 stop() {
73 this._clearTimers();
74 if (this._ws) {
75 this._ws.close(1000, 'client stop');
76 this._ws = null;
77 }
78 this._setState('disconnected');
79 }
80
81 /** Register a callback for sensing data updates. Returns unsubscribe fn. */
82 onData(callback) {

Callers 3

suspendFunction · 0.45
renderNetworkMapFunction · 0.45
renderNetworkMapFunction · 0.45

Calls 3

_clearTimersMethod · 0.95
_setStateMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected