0.2.2 • Published 4 years ago

json-length-delimited-stream v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

JSONLengthDelimitedStream Build Status

Wraps a TCP Socket with a length-delimited JSON frame as a readable stream.

Usage

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!
});
0.2.2

4 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago