drop packets when the upstream exerts backpressure
This simple readable/writable stream drops writes when in a paused state.
npm install lossystream
var lossy = require'lossystream';var// d contains the data that was dropped;someStreampipelossyon'drop' droppedpipeslowStream;
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.