2015-06-09 17:40:58 +02:00
|
|
|
var fs = require('fs');
|
2015-06-29 15:41:18 +02:00
|
|
|
var geo = require('./lib/geo.min.js');
|
2015-06-09 17:40:58 +02:00
|
|
|
|
|
|
|
module.exports = function(io) {
|
|
|
|
io.on('connection', function(socket) {
|
2015-06-10 11:24:59 +02:00
|
|
|
|
2015-06-15 17:04:19 +02:00
|
|
|
var streamer = new geo.MeshStreamer();
|
2015-06-10 11:24:59 +02:00
|
|
|
|
2015-06-15 17:04:19 +02:00
|
|
|
streamer.start(socket);
|
2015-06-09 17:40:58 +02:00
|
|
|
|
|
|
|
});
|
2015-07-01 10:14:15 +02:00
|
|
|
};
|