News for hackers. Stuff that matters.
Re:A Silly Usecase for WebSockets (strobe warning) by bandamo on Thursday February 24, 2022 @06:17AM (#30453444)
no crash with:

setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)

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)