Skip to content

Commit

Permalink
fix: reload every 20s
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Nov 7, 2024
1 parent edb994f commit d1e08ff
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ export const ConferenceScreen = () => {
};
}, [onJoinFunc]);

useEffect(() => {
setTimeout(() => window.location.reload(), 20000);
}, []);

if (!isConnectedToRoom && ![HMSRoomState.Reconnecting, HMSRoomState.Disconnected].includes(roomState)) {
return <FullPageProgress text={roomState === HMSRoomState.Connecting ? 'Joining...' : ''} />;
}
Expand Down

0 comments on commit d1e08ff

Please sign in to comment.