Skip to content

Commit

Permalink
adds logging for new users (#35)
Browse files Browse the repository at this point in the history
* refactor(the homepage): slight refactor

* feat(home page): refactor + design improvements for the Home Page

* feat(server): adds logging for new users
  • Loading branch information
fastndead authored Apr 29, 2024
1 parent cae0609 commit 5516ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const users: Record<string, Player> = {}
const rooms: Record<string, { [key: string]: Player }> = {}

const createNewUser = (name: string, id: string) => {
console.log(`New user: ${name}`)

users[id] = {
id: id,
value: null,
Expand Down

0 comments on commit 5516ba8

Please sign in to comment.