Node.js Readable Stream close Event
The ‘close’ Event in a Readable Stream is emitted when the stream and any of its hidden resources are being closed This event implies that no further events can be emitted, and no further computations can take place. Moreover, if a Readable stream is created with the emitClose option then it can always emit ‘close’ event.
Event: 'close '
Below examples illustrate the use of close event in Node.js:
Done... Stream ended
Here, close method is not called so close event is not emitted.