3 ms·
setInterval(function(){$(".zero.button").click()}, 10);
by e0m 12y ago
setInterval(function(){$(".zero.button").click()}, 10);
- seanlinehan 12y agosetInterval(function(){Math.random() > .5 ? $(".zero.button").click() : $(".one.button").click()}, 80); ヽ༼ຈل͜ຈ༽ノ
- Retr0spectrum 12y agovar s = io.connect(); var loop = function() { s.emit('input', '0'); setTimeout(loop, 0); }; loop();
- nmjohn 12y agovar b = io.connect(); setInterval(function() {"00001001".split('').forEach(function(n) { b.emit('input',n); });},10) I found it interesting to see how hard I had to hit the server to a.) get all my requests in before another person's request gets in the middle - and b.) have my 8 bits (or however many I was sending, didn't have much luck past 40 bits) occur at the start of on ascii character - as opposed to having it be off by n bits that previously were on the stack. Thankfully websockets/socket.io ensures ordering so I didn't have to worry about them becoming unordered like I would if it was using basic http requests.