dotnet / dotnet/dotnet-api-docs

Exceptions for `WebSocket.SendAsync(..)` are not mentioned

Open
#7,809 1 comment 0 reactions 0 assignees View on GitHub
area-System.Net Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Hi Team,

https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.websocket.sendasync?view=net-6.0 does not mention any exceptions. However, there are cases when `SendAsync(..)` overloads can throw exceptions:

* https://github.com/dotnet/runtime/blob/a4a6d30517b5b141b3934814100dfb5f20f07d5d/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs#L238-L241
* https://github.com/dotnet/runtime/blob/a4a6d30517b5b141b3934814100dfb5f20f07d5d/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs#L264

a probably many more. Are the exceptions documented somewhere or is it a "bug" in documentation?

Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.