Fix event sent by EventEmitter classes
This commit is contained in:
@@ -8,14 +8,18 @@ server.createServer(3219, "127.0.0.1", function (password) {
|
||||
}, function (controler) {
|
||||
"use strict";
|
||||
|
||||
console.log("Connected");
|
||||
|
||||
var connected = true;
|
||||
console.log("Ready to serve");
|
||||
|
||||
process.stdin.removeAllListeners("data");
|
||||
|
||||
process.stdin.on("data", function(data) {
|
||||
var cmd = data.toString();
|
||||
console.log("CMD "+cmd);
|
||||
|
||||
controler.on("fileOpened", function() {
|
||||
console.log("Filed opened dude !");
|
||||
});
|
||||
|
||||
try
|
||||
{
|
||||
@@ -61,7 +65,6 @@ server.createServer(3219, "127.0.0.1", function (password) {
|
||||
});
|
||||
break;
|
||||
default :
|
||||
console.log("CMD : "+data.toString());
|
||||
console.log("RETURNED : "+eval(data.toString()));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user