feat(session): Add allow_reconnect() method to control client behavior on disconnect#2102
feat(session): Add allow_reconnect() method to control client behavior on disconnect#2102
allow_reconnect() method to control client behavior on disconnect#2102Conversation
|
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 <93231+schloerke@users.noreply.github.com>
Co-authored-by: schloerke <93231+schloerke@users.noreply.github.com>
Co-authored-by: schloerke <93231+schloerke@users.noreply.github.com>
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 <93231+schloerke@users.noreply.github.com>
Added stub method to |
allow_reconnect() method to control client behavior on disconnect
|
@copilot Run |
Co-authored-by: schloerke <93231+schloerke@users.noreply.github.com>
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.