"use strict"
var net = require("net");
// socket.io TCP server to accept event signal from the IO-control module 
exports.server = function (io){
	var port = 5555;
	net.createServer(function(server) {
	server.setNoDelay(true);
    server.on("data", function(message) {
		console.log("socket.io TCP server connected");
		console.log("DeviceEvent: " + message.toString());
		io.emit("DeviceEvent", message.toString()); 
	});
    server.on("error", function(error) {console.log("" + error);
		server.destroy();
	});
	server.on("end", function() {
		console.log("socket.io TCP server disconnected");
		server.unref();
	});
	}).listen(port, function(){ 
		console.log("socket.io TCP server waiting on port: " + port);
	});
};
@@ -220,24 +220,25 @@
 (true);%0A    
+%09
 server.on(%22d
@@ -259,24 +259,24 @@
 (message) %7B%0A
-
 %09%09console.lo
@@ -421,16 +421,17 @@
 %7D);%0A    
+%09
 server.o
@@ -458,16 +458,23 @@
 error) %7B
+%0A    %09%09
 console.
@@ -478,16 +478,17 @@
 le.log(%22
+ 
 %22 + erro
@@ -725,6 +725,7 @@
 %7D);%0A
-
 %7D;
+%0A

Update IOControlServer.js