Update v1.1.1-beta1
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
2025-06-14 22:01:39 +02:00
parent 440cc4b9eb
commit de8c5ccb84
24 changed files with 8037 additions and 1292 deletions

View File

@@ -37,8 +37,9 @@ const loadSetup = async () => {
};
// Configuration de l'application
const configureApp = async () => {
const configureApp = async () => {
const setup = await loadSetup();
const WebSocketManager = require('./models/websocketManager.js');
// Configuration des stratégies d'authentification
if (setup.discord) require('./models/Passport-Discord.js');
@@ -90,7 +91,7 @@ const configureApp = async () => {
app.use((err, req, res, next) => {
ErrorLogger.error('Unhandled error:', err);
res.status(500).json(response);
res.status(500).json({ error: 'Internal Server Error', message: err.message });
});
};
@@ -140,6 +141,11 @@ const startServer = () => {
}
});
// Initialiser le WebSocket Manager ici, après la création du serveur
const WebSocketManager = require('./models/websocketManager.js');
const wsManager = new WebSocketManager(server);
app.set('wsManager', wsManager);
return server;
};