mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-23 05:39:05 +00:00
WIP triage responses and handle websocket err
This commit is contained in:
@@ -357,6 +357,15 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
|
||||
newUrl,
|
||||
);
|
||||
}
|
||||
if (message.data.value === "error") {
|
||||
const newUrl = "/transcripts/" + transcriptId;
|
||||
router.push(newUrl);
|
||||
// TODO Test
|
||||
setError(
|
||||
Error("Websocket error status"),
|
||||
"There was an issue processing your transcript",
|
||||
);
|
||||
}
|
||||
setStatus(message.data);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user