diff --git a/src/components/run/ColapsibleRow.tsx b/src/components/run/ColapsibleRow.tsx index 7307985e..46e94ec9 100644 --- a/src/components/run/ColapsibleRow.tsx +++ b/src/components/run/ColapsibleRow.tsx @@ -13,7 +13,7 @@ import { getUserById } from "../../api/auth"; import { useTranslation } from "react-i18next"; import { useTheme } from "@mui/material/styles"; import { io, Socket } from "socket.io-client"; -import { remoteBrowserApiUrl } from "../../apiConfig"; +import { apiUrl } from "../../apiConfig"; const socketCache = new Map(); const progressCallbacks = new Map void>>(); @@ -23,7 +23,7 @@ function getOrCreateSocket(browserId: string): Socket { return socketCache.get(browserId)!; } - const socket = io(`${remoteBrowserApiUrl}/${browserId}`, { + const socket = io(`${apiUrl}/${browserId}`, { transports: ["websocket"], rejectUnauthorized: false }); diff --git a/src/components/run/RunContent.tsx b/src/components/run/RunContent.tsx index 6a50b098..08d70a8c 100644 --- a/src/components/run/RunContent.tsx +++ b/src/components/run/RunContent.tsx @@ -23,7 +23,7 @@ import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; import { useTranslation } from "react-i18next"; import { useThemeMode } from "../../context/theme-provider"; -import { remoteBrowserApiUrl } from "../../apiConfig"; +import { apiUrl } from "../../apiConfig"; import { io } from "socket.io-client"; interface RunContentProps {