Skip to content

Commit

Permalink
Added onSessionEnded
Browse files Browse the repository at this point in the history
  • Loading branch information
dmenne committed Sep 18, 2017
1 parent 2e2f1a0 commit 2faad04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inst/shiny/server.R
Expand Up @@ -462,6 +462,13 @@ shinyServer(function(input, output, session) {
}
})

# Required for RInno
session$onSessionEnded(function() {
stopApp()
if (Sys.getenv("RSTUDIO") != "1")
q("no")
})

# https://shiny.rstudio.com/articles/reconnecting.html
session$allowReconnect(TRUE)

Expand Down

0 comments on commit 2faad04

Please sign in to comment.