Skip to content
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

Add heartbeat messages #280

Open
Archmonger opened this issue Feb 2, 2025 · 0 comments
Open

Add heartbeat messages #280

Archmonger opened this issue Feb 2, 2025 · 0 comments

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Feb 2, 2025

Current Situation

ReactPy currently uses websockets as the primary messaging method for rendering.

This can be problematic because cloud providers (such as Azure or GCP) do not keep web workers running persistently. They are run on demand and will "randomly" restart after a certain idle timeout period, which leads to a bad experience.

Parent issue: reactive-python/reactpy#1259

Proposed Actions

Add heartbeat messages to ReactPy, which will prevent cloud workers from timing out

Ref: https://stackoverflow.com/questions/70215641/how-to-handle-azure-app-service-websockets-timeout

@Archmonger Archmonger marked this as a duplicate of #271 Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant