killed undead
This commit is contained in:
parent
4f4fed8ea7
commit
1c5979dc14
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ io.sockets.on('connection', function(socket){
|
||||||
equipes[i].emit('setName', {"id": socket.id, "name": d.name});
|
equipes[i].emit('setName', {"id": socket.id, "name": d.name});
|
||||||
});
|
});
|
||||||
socket.on("disconnect", function(_){
|
socket.on("disconnect", function(_){
|
||||||
|
console.log(socket.id + " disconnect");
|
||||||
|
socket.shown = false;
|
||||||
for(i in equipes)
|
for(i in equipes)
|
||||||
equipes[i].emit('remove', {"id": socket.id});
|
equipes[i].emit('remove', {"id": socket.id});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue