This commit is contained in:
root
2025-09-26 10:06:59 +00:00
parent 3489ea55a2
commit 960832af6b
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -34,8 +34,10 @@ const axiosInstance = axios.create({
const redeployingStacks = {};
const server = http.createServer(app);
const io = new Server(server, { cors: { origin: "*" } });
const io = new Server(server, {
path: "/socket.io",
cors: { origin: "*" }
});
io.on("connection", (socket) => {
console.log(`🔌 [Socket] Client verbunden: ${socket.id}`);
});
+4 -1
View File
@@ -8,7 +8,10 @@ export default function Stacks() {
const [error, setError] = useState("");
useEffect(() => {
const socket = io("/", { transports: ["websocket"] });
const socket = io("/", {
path: "/socket.io",
transports: ["websocket"]
});
console.log("🔌 Socket connected");
socket.on("redeployStatus", async ({ stackId, status }) => {