Refactored the code to remove extra stuff, and move event logic to game file.
Each client now has a unique username
Broadcast player join and leave message globally to chat
Ability to private message another user by clicking their name
Motivation: Neater, easier to read, will help us later on during the game's development. Plus, the technology is better now that it functions like a real chatroom.
Dependencies: None
Fixes N/A
Type of Change
Please delete options that are not relevant, and check those that apply.
[X] Bug Fix (non-breaking change which fixes an issue)
[X] New Feature (non-breaking change which adds functionality)
How Has This Been Tested?
Tested locally, with server configured on port 3001, and client connected to localhost:3001 via socket.io-client.
Description
Summary:
Motivation: Neater, easier to read, will help us later on during the game's development. Plus, the technology is better now that it functions like a real chatroom.
Dependencies: None
Fixes N/A
Type of Change
Please delete options that are not relevant, and check those that apply.
How Has This Been Tested?
Tested locally, with server configured on port 3001, and client connected to
localhost:3001
viasocket.io-client
.Provide instructions so that we can reproduce it.
npm run dev
for front endnpm run server
for backendlocalhost:3000