var loadWork = new Worker("worker.js");
loadWork.onmessage = function(e) {
console.log(e.data);
const interval = setInterval(timeout, 3000, e.data);
};
timeout(e){
loadWork.postMessage("message:"+token);
}
loadWork.postMessage("message:"+token);