I count the concurrent connections as follows:
onValue(ref(db, '.info/connected'), snapshot => {
if (snapshot.val()) {
let con = push(ref(db, 'concurrent'), { connected: moment().format('DD/MM/YYYY HH:mm') })
onDisconnect(con).remove()
}
})
However, when I check the database, I see connections from several days ago:
Does that mean that users have had inactive browser tabs since several days ago? Am I doing something wrong? Is the onDisconnect() function 100% reliable?
