MCPcopy Create free account
hub / github.com/UnsignedInt8/LightSword / stop

Method stop

server/server.ts:129–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 stop() {
130 if (!this.server) return;
131
132 this.server.removeAllListeners();
133 this.server.close();
134 this.server = undefined;
135
136 this.stopRemainingTimer();
137 this.emit('close');
138 this.blacklist.clear();
139
140 if (this.blacklistIntervalTimer) clearInterval(this.blacklistIntervalTimer);
141 this.blacklistIntervalTimer = undefined;
142 }
143
144 updateConfiguration(options: UpdateServerOptions) {
145 this.disableSelfProtection = options.disableSelfProtection;

Callers 3

removeUserMethod · 0.80
startMethod · 0.80
startRemainingTimerMethod · 0.80

Calls 5

stopRemainingTimerMethod · 0.95
removeAllListenersMethod · 0.80
emitMethod · 0.80
clearMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected