lossystream

drop packets when the upstream exerts backpressure

npm install lossystream
4 downloads in the last week
8 downloads in the last month

lossy stream

This simple readable/writable stream drops writes when in a paused state.

npm install lossystream

usage


var lossy = require('lossystream');

someStream.pipe(lossy()).pipe(slowStream)`

why?

I'm using this to push images (640x480) to the browser over binary websockets. The browser freezes if I try to send this much data 30 times a second.

npm loves you