fix stream
All checks were successful
Deploy on Master Change / deploy (push) Successful in 1m48s

This commit is contained in:
2026-07-14 08:14:10 +07:00
parent a55b0a4567
commit 1ed246eec8
4 changed files with 57 additions and 28 deletions

View File

@@ -96,7 +96,7 @@ export const ExamGridProctor: React.FC<ExamGridProctorProps> = ({
});
currentVisibleIds.forEach((id) => {
if (!prev.has(id)) {
ws.send(JSON.stringify({ event: 'teacher:subscribe', data: { studentId: id } }));
ws.send(JSON.stringify({ event: 'teacher:subscribe', data: { studentId: id, mode: 'grid' } }));
prev.add(id);
}
});

View File

@@ -70,7 +70,7 @@ export const ProctorStreamPanels: React.FC<ProctorStreamPanelsProps> = ({
hasOpened.current = true;
setStreaming(true);
setErrorMessage(null);
ws.send(JSON.stringify({ event: 'teacher:subscribe', data: { studentId } }));
ws.send(JSON.stringify({ event: 'teacher:subscribe', data: { studentId, mode: 'focus' } }));
clearPing();
pingTimer = setInterval(() => {
if (ws.readyState === WebSocket.OPEN) {