aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 01:08:33 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-18 01:08:33 -0500
commit891700a8db03204459ceeca883d8692b6b82389d (patch)
treeb3af8438dd1c378890756a52441aff08f599f1de
parent38c7b15cdcbc804fb3be0b536d4fbf61a396f870 (diff)
added lightweight spammer
-rw-r--r--examples/spam.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/spam.js b/examples/spam.js
new file mode 100644
index 0000000..6b822d2
--- /dev/null
+++ b/examples/spam.js
@@ -0,0 +1,16 @@
+// Sorry about writing this, but I want to maintain a notif about the API
+const socket = require('../socket');
+const space = require('../space');
+
+let text = new space.Space();
+text.adhoc("For a node.js YWOT api:\n&&http://github.com/feynmansfedora/ywot-clean");
+let out = text.towrite([-6,20]);
+
+let main = new socket.Socket();
+
+function write(){
+ main.write(out.slice());
+ console.log('set');
+ setTimeout(write,2000);
+}
+main.on('open',write);