Check current back pressure level in Node.js stream

314 views Asked by At

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.

0

There are 0 answers