I want to check user\'s online status, in realtime database I used to check this with the help of onDisconnect(), but now I\'ve shifted to firestore and can\'t find any simi
According to this onDisconnect:
The onDisconnect class is most commonly used to manage presence in applications where it is useful to detect how many clients are connected and when other clients disconnect.
To be able to use presence in firestore, you need to connect firestore with realtime firebase(no other way).
Please check this for more info:
https://firebase.google.com/docs/firestore/solutions/presence