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

Method close

modules/network/mdns/mdns.js:54–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 }
53 }
54 close() {
55 while (this.services.length)
56 this.remove(this.services[0]);
57
58 while (this.monitors.length)
59 this.remove(this.monitors[0].service.substring(0, this.monitors[0].service.length - 6));
60
61 Timer.clear(this.probeTimer);
62
63 super.close();
64 }
65 add(service) {
66 if (!this.hostName)
67 throw new Error("no hostName");

Callers

nothing calls this directly

Calls 3

removeMethod · 0.95
closeMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected