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();