Wraps a TCP Socket with a length-delimited JSON frame as a readable stream.
const jsonLengthDelimitedStream = new JSONLengthDelimitedStream(tcpSocket, { frameLengthInBytes: 4 });
jsonLengthDelimitedStream.on('data', (object) => {
/// do whatever you will with the object!
});
jsonLengthDelimitedStream.on('end', () => {
// the socket has closed!
});