I'm doing a social media project right now. Which I need to have user presence and it is very important. I have seen the methods onDisconnect() and then making a user offline, but my main problem is that I am going Firestore for my project.
I want to update the Firestore users.id status to true or false. How can I do this method with useEffect() and make online status or offline status?
I want to be willing to update in Firestore users.id, not in the realtime database.