How would I limit upload speed from the server in node.js?
Is this even an option?
Scenario: I\'m writing some methods to allow users to automated-ly upload
Use throttle module to control the pipe stream speed
npm install throttle
var Throttle = require('throttle'); // create a "Throttle" instance that reads at 1 b/s var throttle = new Throttle(1); req.pipe(throttle).pipe(gzip).pipe(res);