feat: externalize cluster integration and API

This commit is contained in:
2025-10-19 21:52:55 +02:00
parent 8de77e225d
commit a7018f53f3
4 changed files with 1245 additions and 1270 deletions

View File

@@ -159,9 +159,9 @@ class WebSocketClient {
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
if (currentHost === 'localhost' || currentHost === '127.0.0.1') {
this.wsUrl = `${wsProtocol}//localhost:3001`;
this.wsUrl = `${wsProtocol}//localhost:3001/ws`;
} else {
this.wsUrl = `${wsProtocol}//${currentHost}:3001`;
this.wsUrl = `${wsProtocol}//${currentHost}:3001/ws`;
}
logger.debug('WebSocket Client initialized with URL:', this.wsUrl);