blob: 6b822d20c4b4049b902c7b323c6a4669a424c9fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
|