io.on('connection', (socket) => {
socket.join(String(socket.handshake.address));
let worker = null;
io.on('startScan', (message) => {
worker = new Worker('./scanner.js')
})
socket.on('disconnect', function(){
worker.terminate()
});
});