Shiny app grayed out

#1

Hello, we have a shiny app hosted in Heroku. After 55 secs of user inactivity, the app will be grayed out. This is applicable for Chrome and Safari. Edge is working fine. Heroku have a default timeout for that, and it looks like it cannot be modified using the R buildpack (https://github.com/virtualstaticvoid/heroku-shiny-app).

    function ping() {
        if (!window.Shiny.shinyapp.isConnected()) {
            window.Shiny.shinyapp.reconnect();
        }
    }
    setInterval(ping, 2000);

We embedded below JS code to reconnect using the WebSocket, but the session data is lost. Is there anything else we can try?

Here is more info about our app:
R 3.4.4
Shiny 1.1.0

0 Likes

#2

A working solution :slight_smile:

0 Likes

closed #3

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

0 Likes