Refactor socket management to remove Keycloak integration

- Eliminated KeycloakAuth from the SocketManager initialization.
- Updated SocketManager to directly use the server instance, simplifying the socket management setup.
This commit is contained in:
Tom Butcher 2025-08-18 01:07:39 +01:00
parent 43dc41470d
commit 53246b70b2

View File

@ -1,5 +1,4 @@
import { loadConfig } from './config.js'; import { loadConfig } from './config.js';
import { KeycloakAuth } from './auth/auth.js';
import { SocketManager } from './socket/socketmanager.js'; import { SocketManager } from './socket/socketmanager.js';
import { etcdServer } from './database/etcd.js'; import { etcdServer } from './database/etcd.js';
import express from 'express'; import express from 'express';
@ -19,9 +18,7 @@ import { mongoServer } from './database/mongo.js';
const app = express(); const app = express();
const server = http.createServer(app); const server = http.createServer(app);
// Setup Keycloak Integration new SocketManager(server);
const keycloakAuth = new KeycloakAuth(config);
new SocketManager(keycloakAuth, server);
// Connect to Etcd (await) // Connect to Etcd (await)
try { try {