MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / connected

Method connected

contributed/modClock/main.js:324–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322 }
323
324 connected() {
325 this.connecting = 0;
326 this.connectionWasEstablished = 1;
327 if (this.rtc.valid) {
328 this.display.showTime(this.currentStyle);
329 }
330 else {
331 this.display.value("yay").blink();
332 }
333 this.fetchTime();
334 this.configServer();
335 this.doWiFiScan();
336 }
337
338 advertiseServer() {
339 let name = this.prefs.name;

Callers 1

connectMethod · 0.95

Calls 6

fetchTimeMethod · 0.95
configServerMethod · 0.95
doWiFiScanMethod · 0.95
showTimeMethod · 0.80
blinkMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected