How to listen if a connected user lost internet connection?

We have a. multi user app, we need to know if a user is still online, but there are users that lost internet connection and they still show up as online, how can we detect that? Thanks!

true can always be defined

Have you tried by using Live Query ws_disconnect event?