Bug fixing. First functional version
This commit is contained in:
29
bin/test-server.js
Normal file
29
bin/test-server.js
Normal file
@@ -0,0 +1,29 @@
|
||||
var server = require("../lib/server.js");
|
||||
var event = require("../lib/event.js");
|
||||
|
||||
server.createServer(3219, "127.0.0.1", function (password) {
|
||||
"use strict";
|
||||
|
||||
return true;
|
||||
}, function (controler) {
|
||||
"use strict";
|
||||
|
||||
console.log("Connected");
|
||||
|
||||
console.log("Ready to serve");
|
||||
|
||||
process.stdin.on("data", function(data) {
|
||||
if (data.toString() !== "exit"){
|
||||
eval(data.toString());
|
||||
}
|
||||
else {
|
||||
|
||||
controler.detach();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user