blob: a822e5d408587b82b563364d56464251aed1d4eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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();
text.adhoc("\
\n\
For a node.js YWOT api: \n\
& http://github.com/feynmansfedora/ywot-clean \n\
");
text.loc = [-6,20];
let out = text.towrite();
let main = new Socket();
function write(){
main.write(out.slice());
console.log('set');
setTimeout(write,2000);
}
main.on('open',write);
|