mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-24 13:50:35 +03:00
Update server.js
user list bug fix
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user