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

liveReload: add hearbeat for keepalive #6904

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Conversation

developit
Copy link
Collaborator

This prevents the WebSocket connection from being closed due to inactivity when using a proxy like Cloudflare.

Testing Strategy:

Run a remix app in dev mode and load it via a Cloudflare tunnel:

npm run dev & cloudflared tunnel --url http://localhost:57763

Now open the tunnel URL and wait 100 seconds. The socket connection will be closed and the page will reload.

This prevents the WebSocket connection from being closed due to inactivity when using a proxy like Cloudflare.
@changeset-bot
Copy link

changeset-bot bot commented Jul 20, 2023

⚠️ No Changeset found

Latest commit: 493fc8c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pcattori pcattori self-assigned this Jul 20, 2023
@brophdawg11 brophdawg11 added package:dev feat:dx Issues related to the developer experience labels Jul 20, 2023
@ryanflorence ryanflorence merged commit 218c6eb into main Jul 21, 2023
@ryanflorence ryanflorence deleted the feat/live-reload-heartbeat branch July 21, 2023 15:45
ryanflorence added a commit that referenced this pull request Jul 21, 2023
@ryanflorence ryanflorence restored the feat/live-reload-heartbeat branch July 21, 2023 15:47
@MichaelDeBoey MichaelDeBoey deleted the feat/live-reload-heartbeat branch August 3, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed feat:dx Issues related to the developer experience package:dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants