Skip to content

[wasm] Process WebSocket connection errors on NodeJS - #69858

Merged
maraf merged 2 commits into
dotnet:mainfrom
maraf:WasmNodeWebSocketError
May 30, 2022
Merged

maraf merged 2 commits into
dotnet:mainfrom
maraf:WasmNodeWebSocketError

Conversation

@maraf

@maraf maraf commented May 26, 2022

Copy link
Copy Markdown
Member

Some of the errors produced during WebSocket connection are published as "error" event.
Here we attach a listener to it and reject the open promise if the event is raised (which correctly produces an exception in managed code).

Fixes #63671.
Fixes #63681.

@maraf maraf added arch-wasm WebAssembly architecture area-Infrastructure-mono labels May 26, 2022
@maraf
maraf requested a review from pavelsavara May 26, 2022 15:51
@maraf
maraf requested a review from marek-safar as a code owner May 26, 2022 15:51
@maraf maraf self-assigned this May 26, 2022
@ghost

ghost commented May 26, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Some of the errors produced during WebSocket connection are published as "error" event.
Here we attach a listener to it and reject the open promise if the event is raised (which correctly produces an exception in managed code).

Fixes #63671.
Fixes #63681.

Author: maraf
Assignees: maraf
Labels:

arch-wasm, area-Infrastructure-mono

Milestone: -

@maraf

maraf commented May 26, 2022

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@maraf

maraf commented May 27, 2022

Copy link
Copy Markdown
Member Author

Failures are not relevant.

@maraf
maraf merged commit 9380113 into dotnet:main May 30, 2022
@maraf
maraf deleted the WasmNodeWebSocketError branch May 30, 2022 10:25
@ghost ghost locked as resolved and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

2 participants