See #34
server.close() of express should be called in a callback listening on SIGTERM or maybe other outside signals. This will emit the close event and devices can be tried to be reset. Only thing is that the shutdown function registered for the signals is not guaranteed to finish properly before the process is killed. But maybe more a theoretical problem.
See #34
server.close() of express should be called in a callback listening on SIGTERM or maybe other outside signals. This will emit the close event and devices can be tried to be reset. Only thing is that the shutdown function registered for the signals is not guaranteed to finish properly before the process is killed. But maybe more a theoretical problem.