I’d like to be able to hook into the live query events from the cloud code side and update a user’s status to disconnected when they lose live query connection.
I assume this isn’t possible at all?
Currently I’m building a more “hacky” way with a lot more overhead to achieve the same goal. Basically I’m updating a “lastConnected” date field in a Status class with the current date every 5 minutes and I have a job that fires every minute to check if that lastConnected date value is more than 5 minutes ago and if so updating the status to disconnected.