This repo contains the following examples:
bigfile
folder containscreate-big-file.js
file to generate abig.file
andserver.js
to send this file back to a client in two ways, first way isreadFile
and second way using Node streams APIcreateReadStream()
https
folder contains a self-signed certificate and private key for encryption withhttps.js
web server.eventemitter.js
contains an example about implementing a custom event emitter in Node.eventloop.js
contains an example about how Node event-loop works when runs after reading a file.