Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including backpressurify with all npm packages installed. Try it out:

var backpressurify = require("backpressurify")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

backpressurify v0.0.0

Wrapper for `Duplex` stream objects to ensure they respect back-pressure

backpressurify

Wrapper for Duplex stream objects to ensure they respect back-pressure

This module add support for back-pressure on Duplex stream objects that don't support it, sending in-wire messages to control the flow. It's specially useful for network streams to notify the sender end to pause or resume sending info in case the receiver can't be able to process them as fast, so there's no need to collapse the network.

Install

npm install backpressurify

API

  • duplex: Duplex stream object to be wrapped
  • options: options passed to the parent Duplex constructor
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free