See article at https://therootcompany.com/blog/pipe-node-streams-the-right-way/.
In essense, this is the happy path:
This is the Happy Path order of stream events - when all the handlers are connected correctly, in the right order, and there are no errors.
ReadableStream | WritableStream |
---|---|
'pipe' |
|
'open' (files) |
|
'ready' (files) |
|
'readable' (1+) |
|
'drain' (0+) |
|
'end' |
|
'finish' |
|
'unpipe' |
|
'close' |
|
'close' |