Skip to content

Commit 43407c5

Browse files
committed
fix Blazor WASM check
1 parent 61373d7 commit 43407c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public Task InitializeWebSocket()
408408
#else
409409
_clientWebSocket = new ClientWebSocket();
410410
_clientWebSocket.Options.AddSubProtocol("graphql-ws");
411-
if(!System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Create("WEBASSEMBLY")))
411+
if(!System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Create("BROWSER")))
412412
{
413413
// the following properties are not supported in Blazor WebAssembly and throw a PlatformNotSupportedException error when accessed
414414
_clientWebSocket.Options.ClientCertificates = ((HttpClientHandler)Options.HttpMessageHandler).ClientCertificates;

0 commit comments

Comments
 (0)