https://nodejs.org/api/stream.html#stream_event_data Or how should I get data from serial port with serialport-stream?