MCPcopy Create free account
hub / github.com/code100x/chess / getInstance

Method getInstance

apps/ws/src/SocketManager.ts:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 static getInstance() {
32 if (SocketManager.instance) {
33 return SocketManager.instance;
34 }
35
36 SocketManager.instance = new SocketManager();
37 return SocketManager.instance;
38 }
39
40 addUser(user: User, roomId: string) {
41 this.interestedSockets.set(roomId, [

Callers 1

SocketManager.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected