Is it possible reopen a closed stream after calling stream.end()?
My requirement is to use streams to write in chunks and the whole process is called inside a scheduler, so once the stream is closed and the next time scheduler is called the said error is emitted which is really undesirable.
And also I don't want to create a new stream every time the scheduler runs.
Node.js Stream's documentation says
Calling the stream.write() method after calling stream.end() will raise an error.