Re:A Silly Usecase for WebSockets (strobe warning)
by niel on Thursday February 24, 2022 @03:38AM
(#30452327)
EPILEPSY WARNING. Extreme strobe upon opening OP link.
Really messed with my vision and crashed chrome. Fun experiment!
[ Parent
| on HN ]
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)