Re:A Silly Usecase for WebSockets (strobe warning)
by heleninboodler on Thursday February 24, 2022 @02:22PM
(#30459008)
setInterval( () => { if(state.textContent == 'on') {
websocket.send(JSON.stringify({ action: 'plus' })); } }, 50)
setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)