We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onWSClose
Run this in one R session:
library(httpuv) app <- startServer("0.0.0.0", 8000, list( onWSOpen = function(ws) { ws$onClose(function() { message("onClose start") Sys.sleep(10) message("onClose end") }) } ))
And this in another:
library(websocket) ws <- websocket::WebSocket$new("ws://localhost:8000/") ws$onMessage(function(msg) cat(msg, "\n")) ws$close()
In the first R session, press Ctrl-C within 10 seconds. It will print:
Error in execCallbacks(timeoutSecs) : c++ exception (unknown reason) Calls: <Anonymous> ... serviceApp -> service -> run_now -> execCallbacks -> .Call
This is a minimal reproducible case of rstudio/shiny#1967 (comment)
The text was updated successfully, but these errors were encountered:
c++ exception (unknown reason)
No branches or pull requests
Run this in one R session:
And this in another:
In the first R session, press Ctrl-C within 10 seconds. It will print:
This is a minimal reproducible case of rstudio/shiny#1967 (comment)
The text was updated successfully, but these errors were encountered: