-
Notifications
You must be signed in to change notification settings - Fork 114
feat(session): Add allow_reconnect()
method to control client behavior on disconnect
#2102
New issue
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
base: main
Are you sure you want to change the base?
Conversation
Please add documentation to the method. The roxygen2 docs from R were: #' \item{allowReconnect(value)}{
#' If `value` is `TRUE` and run in a hosting environment (Shiny
#' Server or Connect) with reconnections enabled, then when the session ends
#' due to the network connection closing, the client will attempt to
#' reconnect to the server. If a reconnection is successful, the browser will
#' send all the current input values to the new session on the server, and
#' the server will recalculate any outputs and send them back to the client.
#' If `value` is `FALSE`, reconnections will be disabled (this is
#' the default state). If `"force"`, then the client browser will always
#' attempt to reconnect. The only reason to use `"force"` is for testing
#' on a local connection (without Shiny Server or Connect).
#' } |
Co-authored-by: schloerke <[email protected]>
Co-authored-by: schloerke <[email protected]>
Co-authored-by: schloerke <[email protected]>
Added comprehensive documentation based on the R roxygen2 docs. The docstring now explains the behavior in hosting environments (Posit Connect/Shiny Server) vs local connections, and clarifies when each value option should be used. (commit 1f43e56) |
@copilot Please add a stub method for |
Co-authored-by: schloerke <[email protected]>
Added stub method to |
allow_reconnect()
method to control client behavior on disconnect
@copilot Run |
Co-authored-by: schloerke <[email protected]>
Fixed linting issues by removing trailing whitespace from the example files. (commit d89f542) |
allow_reconnect()
method on Session abstract base classallow_reconnect()
method on AppSession classallow_reconnect()
method on SessionProxy class_send_message_sync()
helper to send the allowReconnect messageSummary
Fixed trailing whitespace in example files to address linting requirements.
Original prompt
Fixes #2058
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.