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

Broadcast events #49

Open
adamchainz opened this issue Jan 10, 2022 · 0 comments
Open

Broadcast events #49

adamchainz opened this issue Jan 10, 2022 · 0 comments

Comments

@adamchainz
Copy link
Owner

Description

Within a single browser, the SharedWorker only refreshes the latest opened tab. That's a good feature, it prevents a thundering herd.

But if you open several browsers or use isolated sessions within one browser, several SharedWorkers will run and connect to the events view. But unfortunately the threading event will mean only one of these running events views will actually pass the reload message to one of the browsers.

It would be good to use some kind of thread messaging construct to pass the event to all relevant running threads from event views. Thus, one might open a couple browsers to check between their incompatibilities, and see them all reload.

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