Open a tcp socket and continuously read the stream in a non-working way. Items in the stream are seperated by a cartridge return. Use regex to remove the non numeric characters but allowing the decimal point from the item and add each cleaned item to a public queue named rawData.
function readSocket(host,port,regexString){
var socket = net.connect(port,host);
socket.on("data",function(data){
var dataArray = data.toString().split("\r");
var regex = new RegExp(regexString);
dataArray.forEach(function(data){
rawData.push(data.replace(regex,""));
});
});
}