We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c6c82 commit 8379f8fCopy full SHA for 8379f8f
src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs
@@ -399,7 +399,9 @@ public Task InitializeWebSocket()
399
// the following properties are not supported in Blazor WebAssembly and throw a PlatformNotSupportedException error when accessed
400
try
401
{
402
- _clientWebSocket.Options.ClientCertificates = ((HttpClientHandler)Options.HttpMessageHandler).ClientCertificates;
+ var certs = ((HttpClientHandler)Options.HttpMessageHandler).ClientCertificates;
403
+ if (certs != null) // ClientWebSocketOptions.ClientCertificates.set throws ArgumentNullException
404
+ _clientWebSocket.Options.ClientCertificates = certs;
405
}
406
catch (NotImplementedException)
407
0 commit comments