mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
Update server.js
user list bug fix
This commit is contained in:
parent
4652f6eec0
commit
4200fd3799
1 changed files with 8 additions and 7 deletions
|
@ -54,6 +54,7 @@ io.on('connection', function (client) {
|
||||||
if(index!=-1){
|
if(index!=-1){
|
||||||
delete users[index];
|
delete users[index];
|
||||||
}
|
}
|
||||||
|
users = users.filter(Boolean)
|
||||||
|
|
||||||
io.emit('users', users);
|
io.emit('users', users);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue