You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this app with DevTools showing, click the button within a few seconds of startup, and wait in the debugger for a few seconds. When you press Continue, you get the RobustSockJS collision error message.
When reproducing this, I had jsonp-polling as the only protocol enabled, not sure if that is relevant or not.
library(shiny)
ui <- fluidPage(
tags$p(
tags$strong("Instructions: "),
"Press \"Cause error\". The correct behavior is for the counter to keep counting; the buggy behavior is for the counter to stop."
),
textOutput("counter"),
actionButton("go", "Cause error"),
tags$script(HTML(r"{
Shiny.addCustomMessageHandler('errorme', function(msg) {
throw new Error('boom');
});
}"))
)
server <- function(input, output, session) {
i <- 0
output$counter <- renderText({
invalidateLater(1000)
i <<- i + 1
i
})
observeEvent(input$go, {
session$sendCustomMessage("errorme", list())
})
}
shinyApp(ui, server)
The text was updated successfully, but these errors were encountered:
Running this app with DevTools showing, click the button within a few seconds of startup, and wait in the debugger for a few seconds. When you press Continue, you get the RobustSockJS collision error message.
When reproducing this, I had jsonp-polling as the only protocol enabled, not sure if that is relevant or not.
The text was updated successfully, but these errors were encountered: