MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / stop

Method stop

src/main/core/httpServer.ts:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }
101
102 public stop(): void {
103 if (this.server) {
104 this.server.close(() => {
105 console.log('[HttpServer] 服务已停止')
106 })
107 this.server = null
108 }
109 }
110
111 public isRunning(): boolean {
112 return this.server !== null && this.server.listening

Callers 1

startMethod · 0.95

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected