Skip to content

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented May 1, 2025

Refactor WebSocket error handling to ensure that errors are only set when the current socket ref matches the active one. This prevents unnecessary error messages when the WebSocket connection closes unexpectedly

This solves the problem of showing error messages because of React Strict mode rendering the page twice and opening 2 websocket connections.

Refactor WebSocket error handling to ensure that errors are only set when the current socket matches the active one. This prevents unnecessary error messages when the WebSocket connection closes unexpectedly
@jaaydenh jaaydenh self-assigned this May 1, 2025
@jaaydenh jaaydenh requested a review from aslilac May 1, 2025 17:54
@jaaydenh jaaydenh merged commit e718c3a into main May 1, 2025
33 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/websocket-strict-mode branch May 1, 2025 23:02
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 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.

2 participants