changed ports

This commit is contained in:
2025-01-12 22:38:46 +01:00
parent be6a836b99
commit 558c434539
4 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -8,12 +8,14 @@ import MainMix from "@/app/components/MainMix";
// initialize global websocket connection
import {initConnection} from "@/app/lib/x32CommunicationManager";
const WEBSOCKET_PORT = 3001;
const Page = () => {
const [appConfig, setAppConfig] = useState(null);
const [activeTab, setActiveTab] = useState("mainMix");
useEffect(() => {
initConnection(`ws://${window.location.hostname}:8080`);
initConnection(`ws://${window.location.hostname}:${WEBSOCKET_PORT}`);
fetchConfig().then(config => {
setAppConfig(config);
});