by niel · 4y ago · 0 comments
while (true) { websocket.send(JSON.stringify({ action: 'plus' })); }
Really messed with my vision and crashed chrome. Fun experiment!setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)
setInterval( () => { if(state.textContent == 'on') {
websocket.send(JSON.stringify({ action: 'plus' })); } }, 50)