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

Method getInstance

electron/main/services/SocketService.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 private constructor() {}
19
20 public static getInstance(): SocketService {
21 if (!SocketService.instance) {
22 SocketService.instance = new SocketService();
23 }
24 return SocketService.instance;
25 }
26
27 /**
28 * 当前是否已启动 WebSocket 服务

Callers 1

tryAutoStartMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected