MCPcopy Index your code
hub / github.com/SPlayer-Dev/SPlayer / cleanupServer

Method cleanupServer

electron/main/services/SocketService.ts:494–498  ·  view source on GitHub ↗

* 清理 WebSocket 服务

()

Source from the content-addressed store, hash-verified

492 * 清理 WebSocket 服务
493 */
494 private cleanupServer(): void {
495 this.wss = null;
496 this.currentPort = null;
497 this.clients.clear();
498 }
499
500 /**
501 * 便于主进程调用自动启动

Callers 2

startMethod · 0.95
stopMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected