3

Is there a way in Node.js to check the back pressure state of a Stream? For example to compare it to the high water mark.

My use case is inside a unit tests, I'd like to make sure a transform stream plugin is draining the pipe and doesn't build up back pressure on the output stream.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Simon Boudrias
  • 42,953
  • 16
  • 99
  • 134

0 Answers0