Log more stuff

This commit is contained in:
Thomas FORGIONE 2015-07-02 14:42:54 +02:00
parent 29b7760bec
commit b5c80d4603
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ var geo = require('./lib/geo.min.js');
module.exports = function(io) {
io.on('connection', function(socket) {
console.log('[SOK] ' + new Date() + ' ' + socket.conn.remoteAddress);
console.log('[SOK] ' + new Date() + ' ' + socket.conn.remoteAddress + ' connection');
socket.on('disconnect', function() {
console.log('[SOK] ' + new Date() + ' ' + socket.conn.remoteAddress + ' disconnect');
});
var streamer = new geo.MeshStreamer();