Can Terminus be used as an ExpressJS middleware?
vorant94 opened this issue · 1 comments
vorant94 commented
Hi, there!
I found this great lib that helps organize health-check and graceful shutdowns boilerplate and it is doing pretty well, thanks for it!
The way that the lib is working for me is that I create ExpressJS app, than I create http.Server from the app and enrich the server with terminus. In my specific case I need to avoid converting the ExpressJS app into http.Server... Is there an option to use this lib as an ExpressJS middleware instead of enriching the http.Server?
Falinor commented
For the record, I do not think that terminus is usable as a middleware because it binds on the server’s event listeners, not on the request flow.