When creating a custom readable stream in Node.js, implementing the '______' method is essential to supply the stream with data chunks.

  • push
  • write
  • read
  • pipe
When creating a custom readable stream in Node.js, implementing the 'read' method is essential to supply the stream with data chunks. This method is invoked by the stream consumer to request data. It should be implemented to push data into the stream using the 'push' method or emit 'data' events.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *