Compare commits

..

No commits in common. "1bc52b0a37cc26ddeeddb0675a962199ab1a38f5" and "b1942b89cb23c7002e407f370487a746c3e2643d" have entirely different histories.

View File

@ -47,14 +47,8 @@ class PacketStreamFactory extends Transform{
}
_transform(chunk, encoding, next){
if(!chunk){
const err = "Chunk was invalid!";
logger.error(err);
next(err);
}
let packet = new Packet();
const lines = chunk.split("\n");
const header = lines.splice(0, 1)[0]; // Grab first line, "lines" is now the payload
packet = this._handleHeader(packet, header);