mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-25 10:40:34 +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){
|
||||
delete users[index];
|
||||
}
|
||||
users = users.filter(Boolean)
|
||||
|
||||
io.emit('users', users);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user