Skip to content

Commit

Permalink
ensure camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
N4r35h committed Jun 20, 2024
1 parent a795e07 commit 5a14881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/ws/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const gameManager = new GameManager();
wss.on('connection', function connection(ws, req) {
//@ts-ignore
const token: string = url.parse(req.url, true).query.token;
const User = extractAuthUser(token, ws);
gameManager.addUser(User);
const user = extractAuthUser(token, ws);
gameManager.addUser(user);

ws.on('close', () => {
gameManager.removeUser(ws);
Expand Down

0 comments on commit 5a14881

Please sign in to comment.