We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f0ddc commit 5d59d73Copy full SHA for 5d59d73
server/server.js
@@ -19,7 +19,7 @@ io.on('connection', function(socket){
19
20
//iterate over allClients to check userName for duplicates
21
allClients.forEach(function(client){
22
- if(client.userName == user || user == 'undefined'){
+ if(client.userName == user && client.room == room || user == 'undefined'){
23
userExists = true;
24
}
25
})
0 commit comments