像实时数据库中一样,firestore中是否有类似onDisconnect()的方法?

问题描述:

我想在onDisconnect()的帮助下在实时数据库中检查用户的在线状态,但是现在我转到了firestore,在其中找不到任何类似的方法.

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 similar method in that.