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

Method _setState

web/rusense/services/sensing.service.js:375–381  ·  view source on GitHub ↗
(newState)

Source from the content-addressed store, hash-verified

373 // ---- State management --------------------------------------------------
374
375 _setState(newState) {
376 if (newState === this._state) return;
377 this._state = newState;
378 for (const cb of this._stateListeners) {
379 try { cb(newState); } catch (e) { /* ignore */ }
380 }
381 }
382
383 /**
384 * Update the dataSource label and notify state listeners so the UI can

Callers 4

stopMethod · 0.95
_connectMethod · 0.95
_scheduleReconnectMethod · 0.95
_fallbackToSimulationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected