Last active
May 11, 2016 12:39
-
-
Save wjt/c3eb684f2ebb31ca786ace8f6a83e412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function InterruptingCowsocket(...args) { | |
var ws = new WebSocket(...args); | |
f(); | |
return ws; | |
function g() { | |
ws.send("moo!"); | |
f(); | |
} | |
function f() { | |
setTimeout(g, Math.random() * 60 * 1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context.