Websocket connects

This commit is contained in:
Owen
2025-08-14 11:58:08 -07:00
parent aabfa91f80
commit 200e3af384
6 changed files with 38 additions and 14 deletions

View File

@@ -11,6 +11,13 @@ import { tokenManager } from "./lib/tokenManager";
import { APP_VERSION } from "./lib/consts";
export async function createHybridClientServer() {
logger.info("Starting hybrid client server...");
// Start the token manager
await tokenManager.start();
const token = await tokenManager.getToken();
const monitor = new TraefikConfigManager();
await monitor.start();
@@ -23,11 +30,6 @@ export async function createHybridClientServer() {
throw new Error("Hybrid configuration is not defined");
}
// Start the token manager
await tokenManager.start();
const token = await tokenManager.getToken();
// Create client
const client = createWebSocketClient(
token,