There are situations when we need to send response stream that is not an instance of node Readable stream and current way of checking for stream value instanceof Stream fails.
e.g. when using alternative module like readable-stream or some other cases
Description
There are situations when we need to send response stream that is not an instance of node
Readable
stream and current way of checking for streamvalue instanceof Stream
fails. e.g. when using alternative module like readable-stream or some other casesMy usecase
Solution
Readable
stream implementation.Tested also with this code