MCPcopy Create free account
hub / github.com/echoVic/blade-code / stop

Method stop

src/mcp/server/MCPServer.ts:91–100  ·  view source on GitHub ↗

* 停止服务器

()

Source from the content-addressed store, hash-verified

89 * 停止服务器
90 */
91 async stop(): Promise<void> {
92 if (this.wsServer) {
93 this.wsServer.close();
94 }
95 if (this.server) {
96 this.server.close();
97 }
98 this.clients.clear();
99 this.emit('stopped');
100 }
101
102 /**
103 * 处理 WebSocket 连接

Callers 1

mcpCommandFunction · 0.95

Calls 2

clearMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected