Implementing Readable Streams
Learn how to implement a new custom Readable stream.
We'll cover the following
Now that we know how to read from a stream, the next step is to learn how to implement a new custom Readable
stream.
Custom readable stream
To do this, it’s necessary to create a new class by inheriting the prototype Readable
from the stream module. The concrete stream should provide an implementation of the _read()
method, which has the following signature.
Get hands-on with 1400+ tech skills courses.