Added log in socket
This commit is contained in:
parent
173b877dbf
commit
29b7760bec
|
@ -4,6 +4,8 @@ var geo = require('./lib/geo.min.js');
|
||||||
module.exports = function(io) {
|
module.exports = function(io) {
|
||||||
io.on('connection', function(socket) {
|
io.on('connection', function(socket) {
|
||||||
|
|
||||||
|
console.log('[SOK] ' + new Date() + ' ' + socket.conn.remoteAddress);
|
||||||
|
|
||||||
var streamer = new geo.MeshStreamer();
|
var streamer = new geo.MeshStreamer();
|
||||||
|
|
||||||
streamer.start(socket);
|
streamer.start(socket);
|
||||||
|
|
Loading…
Reference in New Issue