You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
619 B
26 lines
619 B
var http = require('http');
|
|
var process = require('child_process');
|
|
var WebSocketServer = require("ws").Server;
|
|
var events = require("events");
|
|
var jsoncompress = require('jsoncompress');
|
|
var net = require('net');
|
|
var fs = require('fs');
|
|
|
|
var config = require('./config');
|
|
var logger = require("./logger");
|
|
var _cycle = require("./cycle");
|
|
var CycleBuffer = require("./graphBuffer");
|
|
|
|
var client = new net.Socket(config.CTL_SOCKET, function() {
|
|
logger.log("Connected");
|
|
client.write("Hello world");
|
|
});
|
|
|
|
client.on('data', function(data) {
|
|
|
|
});
|
|
|
|
client.on('close', function() {
|
|
console.log("Connection closed");
|
|
});
|