From 53246b70b2274a741e20a24e4a59012c70ea1020 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 18 Aug 2025 01:07:39 +0100 Subject: [PATCH] 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. --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index fa4e08e..6a04ede 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ import { loadConfig } from './config.js'; -import { KeycloakAuth } from './auth/auth.js'; import { SocketManager } from './socket/socketmanager.js'; import { etcdServer } from './database/etcd.js'; import express from 'express'; @@ -19,9 +18,7 @@ import { mongoServer } from './database/mongo.js'; const app = express(); const server = http.createServer(app); - // Setup Keycloak Integration - const keycloakAuth = new KeycloakAuth(config); - new SocketManager(keycloakAuth, server); + new SocketManager(server); // Connect to Etcd (await) try {