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

Receiving messages in multiple tabs #35

Open
caolan opened this issue Jul 29, 2024 · 1 comment
Open

Receiving messages in multiple tabs #35

caolan opened this issue Jul 29, 2024 · 1 comment

Comments

@caolan
Copy link
Owner

caolan commented Jul 29, 2024

If you open the same app instance in multiple tabs or browser windows, they will race each other to handle incoming messages. There's no particularly nice universal way to resolve this as it depend on what the messages are being used for.

For now, it might be worth restricting subscriptions to a single mutiny-app client (browser window/tab) at a time.

@caolan
Copy link
Owner Author

caolan commented Nov 25, 2024

Locking in general might be the easiest way to handle this. Performance is not a huge concern as we're likely serving a single local user. Adding some kind of transaction API for any mutinyd reading/writing might be a general purpose solution?

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