What counts as inactivity towards timing out an app?


This is a two part question, but both are related.

  1. What exactly counts as activity, in terms of having your app not disconnect? I know if I have an app open and leave it for an hour then it’ll grey out and disconnect. Does moving the mouse count as activity? Does using invalidateLater or reactivePoll mean that the app will never time out because there’s always talk between R and my browser?

  2. Similarly, what counts as usage on shinyapps.io? Is it exactly the same as above?


For Shiny Server Pro, any reactive operation will reset the idle timer. In practice this means any input being sent to the server, and certainly anything triggered by invalidateLater as well. I assume it’s the same for ShinyApps.io.


So does this mean that an application with an invalidateLater or a reactiveFileReader will never time out and always keep the app running on the server?

And what about shiny server open source - I thought it was similar rules to SSP?


bump! I’m really interested in this answer