Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nishith-p-shetty authored Jan 2, 2023
1 parent 19e3791 commit 310ea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ io.on('connection', socket => {

// If someone leaves the chat, let others know
socket.on('disconnect', message => {
console.log("Left : ", name)
console.log("Left : ", users[socket.id])
socket.broadcast.emit('left', users[socket.id]);
delete users[socket.id];
});
Expand Down

0 comments on commit 310ea85

Please sign in to comment.