2015-06-09 17:40:58 +02:00
|
|
|
var fs = require('fs');
|
|
|
|
var sleep = require('sleep');
|
2015-06-15 17:04:19 +02:00
|
|
|
var geo = require('./geo/MeshStreamer.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
|
|
|
|
|
|
|
});
|
|
|
|
}
|