Skip to content
Snippets Groups Projects
Commit 8a4040d9 authored by Jonas Blumer's avatar Jonas Blumer
Browse files

removed disconnect clear

parent 1638c8cf
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ io.on('connection', function(socket){
io.sockets.emit('updateUserCount', Object.keys(io.engine.clients).length);
socket.on('disconnect', function(){
io.sockets.emit('updateUserCount', Object.keys(io.engine.clients).length);
io.sockets.emit('clearExternalData');
//io.sockets.emit('clearExternalData');
});
console.log('a user connected');
socket.on('bpm', function(newBpm){
......
......@@ -30,9 +30,11 @@ $(function(){
externalGrid = data;
});
/*
iosocket.on('clearExternalData', function(){
externalGrid = null;
});
*/
iosocket.on('updateUserCount', function(userCount){
userCount--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment