changed ports
This commit is contained in:
+1
-1
@@ -6,5 +6,5 @@ RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 3001
|
||||
CMD ["node", "./src/OSCWebServer/server.js"]
|
||||
+1
-1
@@ -11,4 +11,4 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile.server
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "3001:3001"
|
||||
@@ -8,7 +8,7 @@ import WebSocket from "ws";
|
||||
const x32IP = process.env.X32_IP;
|
||||
const x32Port = Number(process.env.X32_PORT);
|
||||
|
||||
const OSC_WEB_SOCKET_PORT = 8080;
|
||||
const OSC_WEB_SOCKET_PORT = 3001;
|
||||
|
||||
// OSC Setup
|
||||
const udpPort = new osc.UDPPort({
|
||||
|
||||
+3
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user