stream: improve shutdown handling, minor clean up

- try to close as many things as possible when shutting down

- remove redundant (e.g. `exit` on process when
  listening for `close`) and straight up useless
  (`disconnect`) event listeners
This commit is contained in:
dumbmoron
2023-10-19 20:36:05 +00:00
parent 73d84c09d3
commit cae4a68aa4
2 changed files with 58 additions and 73 deletions

View File

@@ -25,6 +25,7 @@
},
"homepage": "https://github.com/wukko/cobalt#readme",
"dependencies": {
"abort-controller": "3.0.0",
"content-disposition-header": "0.6.0",
"cors": "^2.8.5",
"dotenv": "^16.0.1",