chess
chess copied to clipboard
need to add timeout if matchmaking not happened till 20s
use setTimeout with react useEffect hook so when browser runs the webapp then it start counting and when setTimeout reach 2000ms then it will end the game and show the messsege restart , playagain!!?
hope it will help you!😃
Yup setTimeout does the job