Skip to content

Commit 7fc83ae

Browse files
authored
Merge pull request #289 from bjorg/check-browser-wasm-mode
fix Blazor WASM check
2 parents 61373d7 + 43407c5 commit 7fc83ae

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)