2025-03-10, 12:46 PM
IMO, it would probably be better to do this kind of check fully on the client rather than the server. As you've realized, there is no server side tracking of a user's "idleness". To even support this feature there would need to be some sort of client side support for the feature anyway and the client is perfectly placed to determine when the last user input was. Doing the idleness tracking fully on the client also avoids the need for API changes.
But there should be a server side setting that enforces this on the clients if the intent is to avoid unnecessary usage. Making it an optional client side setting defeats the intent of this kind of feature.
But there should be a server side setting that enforces this on the clients if the intent is to avoid unnecessary usage. Making it an optional client side setting defeats the intent of this kind of feature.