Map socket comm

This commit is contained in:
2025-06-12 11:15:28 +02:00
parent de15de87a9
commit 5fe201182a
5 changed files with 151 additions and 48 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ const public_routes = require('./app/routes/public_routes');
const private_routes = require('./app/routes/private_routes');
const logger = require("./app/utils/logger.util.js");
const map_socket = require("./app/utils/socket.util.js");
const app = express();
var shutting_down = false;
@@ -77,7 +78,8 @@ process.on("SIGINT", () => {
*/
function shutdown() {
shutting_down = true;
map_socket.closeSocket();
server.close(() => {
logger.info("Shutting down server.");
});