From b5c80d46039476feb94c5e2cab5cb7a0e592021b Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 2 Jul 2015 14:42:54 +0200 Subject: [PATCH] Log more stuff --- socket.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/socket.js b/socket.js index 6e19ed9..8edf303 100644 --- a/socket.js +++ b/socket.js @@ -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();