Skip to content

Improve error logging when sending messages to the browser - #56572

Merged
tmat merged 2 commits into
dotnet:mainfrom
tmat:BrowserConnection
Oct 12, 2026
Merged

tmat merged 2 commits into
dotnet:mainfrom
tmat:BrowserConnection

Conversation

@tmat

@tmat tmat commented Oct 9, 2026

Copy link
Copy Markdown
Member

No description provided.

@tmat tmat changed the title Improve error logging whe nsending messages to the browser Improve error logging when sending messages to the browser Oct 9, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@tmat
tmat marked this pull request as ready for review October 10, 2026 01:53
@tmat
tmat requested a review from a team as a code owner October 10, 2026 01:53
Copilot AI balanced review requested due to automatic review settings October 10, 2026 01:53
@tmat

tmat commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@dotnet/hot-reload ptal

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The receive path logs the wrong operation, and the new exception-handling behavior lacks regression tests.

2 open findings
What changed in this PR

Improves browser WebSocket failure diagnostics and clarifies tuple return values.

Changes:

  • Handles WebSocket failures separately and expands exception details.
  • Suppresses logging for closed sockets.
  • Names exchange-result tuple fields.
File Description
BrowserConnection.cs Updates WebSocket error handling and logging.
AbstractBrowserRefreshServer.cs Adds tuple element names for clarity.

🧠 Review effort: Balanced

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@tmat
tmat merged commit 6bec9a6 into dotnet:main Oct 12, 2026
23 checks passed
@tmat
tmat deleted the BrowserConnection branch October 12, 2026 18:35
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 29, 2026
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.

3 participants