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

Send experiment settings on initial page load #1093

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

wwwillchen
Copy link
Collaborator

@wwwillchen wwwillchen commented Nov 5, 2024

It's better to send the experiment settings on initial page load rather than getting them from the first render, particularly for the websockets configuration because it can result in a weird edge case where the first UI request is over SSE (HTTP) and all the subsequent requests is over WebSockets. Because Mesop has very different behavior under WebSockets (e.g. state is kept in-memory and never sent over the network) compared to SSE, mixing SSE and WebSockets over a single browser session can result in weird edge cases.

Copy link
Collaborator

@richard-to richard-to left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I agree this makes more sense.

@wwwillchen wwwillchen merged commit 8efc807 into google:main Nov 5, 2024
6 checks passed
@wwwillchen wwwillchen deleted the server-experiment branch November 5, 2024 22:46
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

Successfully merging this pull request may close these issues.

2 participants