New web sockets events for Gokul

This commit is contained in:
Koper
2023-09-12 23:05:44 +07:00
parent 60edca6366
commit c82e8a87d1

View File

@@ -93,6 +93,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
console.debug("TOPIC event:", message.data);
break;
case "FINAL_LONG_SUMMARY":
case "FINAL_SUMMARY":
if (message.data) {
setFinalSummary(message.data);
@@ -100,6 +101,14 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
}
break;
case "FINAL_SHORT_SUMMARY":
console.debug("FINAL_SHORT_SUMMARY event:", message.data);
break;
case "FINAL_TITLE":
console.debug("FINAL_TITLE event:", message.data);
break;
case "STATUS":
setStatus(message.data);
break;