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

Method constructor

apps/ws/src/SocketManager.ts:12–18  ·  view source on GitHub ↗
(socket: WebSocket, userJwtClaims: userJwtClaims)

Source from the content-addressed store, hash-verified

10 public isGuest?: boolean;
11
12 constructor(socket: WebSocket, userJwtClaims: userJwtClaims) {
13 this.socket = socket;
14 this.userId = userJwtClaims.userId;
15 this.id = randomUUID();
16 this.name = userJwtClaims.name;
17 this.isGuest = userJwtClaims.isGuest;
18 }
19}
20
21class SocketManager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected