exit gracefully (#1356)

pull/1363/head
Taylor King 2 months ago committed by GitHub
parent b6902065f2
commit 5bd587fef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,11 +5,16 @@ import { Config } from './backend/utils/config.js'; // Follow sequence to set se
import { WSServer } from './backend/utils/webSocketServer.js';
import App from './backend/utils/app.js';
const logger = Logger;
const common = Common;
const wsServer = WSServer;
const app = new App();
process.on('SIGINT', () => {
process.exit();
});
const onError = (error) => {
if (error.syscall !== 'listen') { throw error; }
switch (error.code) {

Loading…
Cancel
Save