Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use EventSource instead of websockets #194

Open
estrattonbailey opened this issue Jan 27, 2022 · 1 comment
Open

Use EventSource instead of websockets #194

estrattonbailey opened this issue Jan 27, 2022 · 1 comment

Comments

@estrattonbailey
Copy link
Member

https://developer.mozilla.org/en-US/docs/Web/API/EventSource

@barelyhuman
Copy link

Based on existing experience, this ends up adding a little more lag in the live reload as compared to the web socket, while the websocket is a little more un-reliable without a few patches.

A simple fix might be the retry mechanism available from the following post
https://adamcoster.com/blog/create-a-live-reload-server-for-front-end-development

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants