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

[wasm] Process WebSocket connection errors on NodeJS #69858

Merged
merged 2 commits into from
May 30, 2022

Conversation

maraf
Copy link
Member

@maraf maraf commented May 26, 2022

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
Copy link

ghost commented May 26, 2022

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
Copy link
Member Author

maraf commented May 26, 2022

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@maraf
Copy link
Member Author

maraf commented May 27, 2022

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