by bandamo · 4y ago · 0 comments
setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)
setInterval( () => { if(state.textContent == 'on') { websocket.send(JSON.stringify({ action: 'plus' })); } }, 50)