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:
parent
43dc41470d
commit
53246b70b2
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user