aboutsummaryrefslogtreecommitdiff
path: root/examples/helloworld.js
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:35:45 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:35:45 -0500
commit8810c883ff3b0b5709b9d7fb78e70ecec7211e94 (patch)
treeeddaf1cf6f75f5a32f31fc98204eb7ca69bdaa01 /examples/helloworld.js
parent05b56f4388f1cfec012acda92e5791a95d65ef69 (diff)
space.write relies on .loc; expanded jarvis response
Diffstat (limited to 'examples/helloworld.js')
-rw-r--r--examples/helloworld.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/helloworld.js b/examples/helloworld.js
index 4984914..889ce8f 100644
--- a/examples/helloworld.js
+++ b/examples/helloworld.js
@@ -3,8 +3,9 @@ const Space = require('../space');
writes = new Space(); //Generate a place to store potential writes
writes.adhoc('hello\nworld') // A method to fill internal data with inline code.
+writes.loc = [8, 16]; // Declares the location (in terms of characters displaced from the center)
main = new Socket('helloworld'); // Open socket at yourworldoftext.com/helloworld
main.on('open',()=>{ // When socket opens
- main.write(writes.towrite([8,16])); // Tell the server to write the content of `writes` to
+ main.write(writes.towrite()); // Tell the server to write the content of `writes` to
});