MCPcopy
hub / github.com/Koenkk/zigbee2mqtt / start

Method start

lib/state.ts:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 start(): void {
47 this.load();
48
49 // Save the state on every interval
50 this.timer = setInterval(() => this.save(), SAVE_INTERVAL);
51 }
52
53 stop(): void {
54 // ensure properly started, else this throws undesired errors (e.g. SIGINT during startup)

Callers 1

startFunction · 0.45

Calls 2

loadMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected