Transform stream for splitting up kafka messages
$ npm install kafka-split
'use strict'
const Split = require('kafka-split')
const net = require('net')
const socket = net.connect()
socket.pipe(Split()).on('data', (chunk) => {
// chunk will be a kafka buffer that represents a full kafka message
// starting with the size
})
$ npm test
Evan Lucas
MIT (See LICENSE
for more info)