Closed baticodes closed 6 years ago
Hi, this one must have slipped through the cracks. Thanks for reporting it. The funny thing is I wrote another app that kind of follows this same pattern and I did sort of exactly what you say here. I think the only difference is that instead of hard killing node I stop the Express server gracefully first before I exit the process. I'll get this fixed! Thanks for reporting.
I haven't forgot about this. Thanks for reporting it!
I've adopted your method for now. We can do better and use something like Socket.IO to communicate with the server itself (the Express app) and have it gracefully shutdown. This approach would be better especially if we had database connections or were using other resources that needed to be cleaned up on exit. That said, we'll just use your approach for now.
Thank you for submitting this!
what about adding something like that?
main.js:
index.html: