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

Method addUser

apps/ws/src/GameManager.ts:33–36  ·  view source on GitHub ↗
(user: User)

Source from the content-addressed store, hash-verified

31 }
32
33 addUser(user: User) {
34 this.users.push(user);
35 this.addHandler(user);
36 }
37
38 removeUser(socket: WebSocket) {
39 const user = this.users.find((user) => user.socket === socket);

Callers 2

index.tsFile · 0.45
addHandlerMethod · 0.45

Calls 1

addHandlerMethod · 0.95

Tested by

no test coverage detected