Skip to content

[Feature]: Support shiny server reconnections like in Shiny for R #2058

@tjpalanca

Description

@tjpalanca

Category

Performance

Scope

Minor Enhancement

Problem

In Shiny for R, setting session$allowReconnect(TRUE) enables reconnection behavior to existing or new sessions whenever shiny server disconnects. I don't believe this exists at the moment for Shiny for Python.

On the Javascript console on a Shiny for Python app, running Shiny.shinyapp.$socket.close() then Shiny.shinyapp.reconnect() does seem to produce this behavior, but Shiny.shinyapp.allowReconnect = false and I'm unsure how to enable.

Solution

I would like the ability to set this from Python using the session object.

session.allow_reconnect(True)

and this would cause Shiny to behave similar to when it is enabled in R.

Alternatives (Optional)

No response

Example (Optional)

Impact (Optional)

No response

Contribution? (Optional)

None

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions