From d1e08ff7a4dfdb6d8aff35336bc2aaffc11be2b3 Mon Sep 17 00:00:00 2001 From: KaustubhKumar05 Date: Thu, 7 Nov 2024 17:50:17 +0530 Subject: [PATCH] fix: reload every 20s --- .../src/Prebuilt/components/ConferenceScreen.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/roomkit-react/src/Prebuilt/components/ConferenceScreen.tsx b/packages/roomkit-react/src/Prebuilt/components/ConferenceScreen.tsx index 428c44470c..a65cd63c50 100644 --- a/packages/roomkit-react/src/Prebuilt/components/ConferenceScreen.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/ConferenceScreen.tsx @@ -124,6 +124,10 @@ export const ConferenceScreen = () => { }; }, [onJoinFunc]); + useEffect(() => { + setTimeout(() => window.location.reload(), 20000); + }, []); + if (!isConnectedToRoom && ![HMSRoomState.Reconnecting, HMSRoomState.Disconnected].includes(roomState)) { return ; }