Thanks Cole, I have a better idea of what the issue is now. The app is being served using proxy servers, and apparently there are known issues between proxy servers and websockets:
How HTML5 Web Sockets Interact With Proxy Servers
I tried your solution but it was not successful, I think the message is being generated elsewhere. The message is "Attempting to reconnect..." (note the ellipsis). So far I've tried three other approaches without success.
-
In section 3.9 of the Shiny Server Admin Guide, it details the nine different protocols Shiny can use to connect to a server. I tried each method manually and they either kept showing the reconnect message or the app crashed.
-
I tried editing shiny-server.conf, using the following options:
sockjs_disconnect_delay
How often the SockJS server should send heartbeat packets to the server. These are used to prevent proxies and load balancers from closing active SockJS connections. Defaults to 25 seconds.
I set to this 60 seconds to see if it delayed the messaging, it still happened every 25s. Also tried this in combination with disable_websockets on; but saw no change in behavior.
- I found "Attempting to reconnect..." is defined in shiny-server-client.js and shiny-server-client.min.js
var reconnectContentsHtml="<label>Attempting to reconnect...</label><label> </label>";
ReconnectUI.prototype.showAttempting=function(){$("body").addClass("ss-reconnecting");$("#ss-connect-dialog").html(reconnectContentsHtml);$("#ss-connect-dialog").show()};
I initially redefined ReconnectUI.prototype.showAttempting to be an empty function, did not work. Then I just changed the reconnectContentsHtml string to something like "Attempting to reconnect...zzzzzzzzzzzz" to see I was altering the correct code, also did not work.
I only made changes in shiny-server-client.min.js, but not shiny.server-client.js (the "min" version is what I see writing out to the console).
After each attempt I stopped and restarted the shiny server, so I would expect my changes to be activated. Any other thoughts/clues would be appreciated.
Thanks!