Skip to content

fix: add websocket close handling #17548

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

Merged
merged 3 commits into from
Apr 23, 2025

Conversation

jaaydenh
Copy link
Contributor

resolves #17508

Display an error in the UI that the websocket closed if the user is still interacting with the dynamic parameters form

Screenshot 2025-04-23 at 17 57 25

@jaaydenh jaaydenh self-assigned this Apr 23, 2025
@@ -107,6 +108,15 @@ const CreateWorkspacePageExperimental: FC = () => {
onError: (error) => {
setWsError(error);
},
onClose: () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The assumption is that if the websocket closes while the component is mounted, that this is unexpected and we should inform the user with an error in the UI

@jaaydenh jaaydenh requested a review from aslilac April 23, 2025 16:59
@jaaydenh jaaydenh changed the title fix: Add websocket close handling fix: add websocket close handling Apr 23, 2025
@jaaydenh jaaydenh merged commit ef6e6e4 into main Apr 23, 2025
34 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/dynamic-params-websocket-close branch April 23, 2025 23:19
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameter: Broken websocket fails silently
2 participants