2
0
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:
Metin Seylan
2016-05-11 13:23:27 +03:00
parent 4652f6eec0
commit 4200fd3799
+1
View File
@@ -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);