issues
search
hatchways
/
team-scallops
1
stars
1
forks
source link
FS: Socket setup
#83
Closed
navjot-chahal
closed
3 years ago
navjot-chahal
commented
3 years ago
What this PR does:
Set up socket.io for FE and BE.
Added auth to the sockets handshake.
Set up "online users" functionality.
Designed a module with userLogger class for storing currently online user data.
Console logs are left as placeholders for future code and must be removed later on.
Screenshots / Videos:
Browser console log after testing logging with three separate users in different windows.
Node.js console log after testing logging with three separate users in different windows.
Any information needed to test this feature:
This is mostly BE and IN setup and most of the code feedback (console.log statements) have been removed.
closes #30
navjot-chahal
commented
3 years ago
@ezeilo-su,
I have changed the underlying user logging data structure to Object-based (Hashtable) instead of array-based for faster read times. See
Hotfix - 1
for your reference.
I added a
userDisconnected
emit
event for user disconnect as well.
What this PR does:
Screenshots / Videos:
Any information needed to test this feature:
closes #30