()
| 32 | |
| 33 | let historyTimeout; |
| 34 | const scheduleUpdateHistory = () => { |
| 35 | clearTimeout(historyTimeout); |
| 36 | historyTimeout = setTimeout(() => { |
| 37 | chatWorker.port.postMessage({ type: class="st">"history" }); |
| 38 | }, 1000); |
| 39 | }; |
| 40 | scheduleUpdateHistory(); |
| 41 | |
| 42 | const from = `User ${Math.floor(Math.random() * 10000)}`; |