You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebSocketClient should throw an OperationCanceledException instead of trying to connect and then cancelling.
using (var clientSocket = new ClientWebSocket())
{
var cts = new CancellationTokenSource();
cts.Cancel();
Task t = clientSocket.ConnectAsync(new Uri("ws://" + Guid.NewGuid().ToString("N")), cts.Token);
}
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
Issue Details
Description:
The WebSocketClient should throw an OperationCanceledException instead of trying to connect and then cancelling.
using (var clientSocket = new ClientWebSocket())
{
var cts = new CancellationTokenSource();
cts.Cancel();
Task t = clientSocket.ConnectAsync(new Uri("ws://" + Guid.NewGuid().ToString("N")), cts.Token);
}
}
The WebSocketClient should throw an
OperationCanceledException
instead of trying to connect and then cancelling.The text was updated successfully, but these errors were encountered: