Skip to content

Commit

Permalink
removido: log de mensagens.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrocho committed Dec 9, 2013
1 parent 1d5b30a commit 6323c5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ranking/Ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var wsServer = new webSocketServer({
});

wsServer.on('request', function(request) {
var conexao = request.accept(null, request.origin);
var conexao = request.accept(null, request.origin);

conexao.on('message', function(message) {
var mensagem = JSON.parse(message.utf8Data);
Expand All @@ -40,7 +40,6 @@ wsServer.on('request', function(request) {
console.log(data);
var arq = JSON.parse(data);
arq.push(mensagem['DADOS']);
console.log(arq);
fs.writeFile(URL_RANKING, JSON.stringify(arq));
});
}
Expand All @@ -50,4 +49,4 @@ wsServer.on('request', function(request) {
});
}
});
});
});

0 comments on commit 6323c5a

Please sign in to comment.