1.0.1 • Published 8 years ago

kafka-split v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

kafka-split

Build Status Coverage Status

Transform stream for splitting up kafka messages

Install

$ npm install kafka-split

Usage

'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
})

Test

$ npm test

Author

Evan Lucas

License

MIT (See LICENSE for more info)