add config cicd
Some checks failed
Deploy on Master Change / deploy (push) Failing after 15s

This commit is contained in:
2026-07-01 07:39:55 +07:00
parent 7b3f29ee73
commit 42fc2d9136
4 changed files with 84 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import React, { useEffect, useState, useRef, useCallback } from 'react';
import { getWsUrl } from '../api';
interface ProctorStreamPanelsProps {
studentId: number;
@@ -30,8 +31,7 @@ export const ProctorStreamPanels: React.FC<ProctorStreamPanelsProps> = ({
const webcamZoom = ZOOM_STEPS[webcamZoomIdx];
useEffect(() => {
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsUrl = `${protocol}//${window.location.hostname}:8080/ws?role=teacher`;
const wsUrl = getWsUrl('/ws?role=teacher');
intentionalClose.current = false;
hasOpened.current = false;