Because everything is a stream
In modern web application almost everything can be seen as a stream
Users click on the UI, perform actions, input data, ask the server for data
It's a stream you can write to:
You have met this before for sure:
router.use('/index', (req, res, next) => {
res.send('HI')
//in the source turns into
//res.end('HI', encoding)<---- there you go, streams :)
}
On WriteStreams you can `write` or `end`
Yes:
Write stream has a finish event
Read has an end event
¯\_ツ_/¯