unitialized variables not accepted also load the 'events' submodule from EventEmitter module
This is the LDJClient class extending the EventEmitter class
using super inside constructor as if it's a derivated class, also we need to call super() before accesing this
Initialize buffer storing the data we need to parse at each given moment
This is the data event while watching the stream
(any)
Finds the index of the delimiter used for separating a message into multiple data events and emits the parsified as a JSON input as a message.
if it catches an error means that the message is not a properly formatted JSON message
Does this until the end of the data chunk
This is the data event while watching the stream
(any)
Finds the index of the delimiter used for separating a message into multiple data events and emits the parsified as a JSON input as a message.
if it catches an error means that the message is not a properly formatted JSON message
Does this until the end of the data chunk