Prerequisites
Before applying the non-Pro workaround, confirm you have:- A published Shiny app with separate UI and server files
- Access to edit and republish the app in Domino
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
tags$head(
HTML(
"
<script>
var socket_timeout_interval
var n = 0
$(document).on('shiny:connected', function(event) {
socket_timeout_interval = setInterval(function(){
Shiny.onInputChange('count', n++)
}, 15000)
});
$(document).on('shiny:disconnected', function(event) {
clearInterval(socket_timeout_interval)
});
</script>
"
)
)
textOutput("keepAlive")
output$keepAlive <- renderText({
req(input$count)
paste("keep alive ", input$count)
})
Was this page helpful?