Cysharp/GrpcWebSocketBridge

WebGL biuld doesn't work

KAW0 opened this issue · 2 comments

KAW0 commented

This method in Grpc.Net.Client.Internal.OperatingSystem
private OperatingSystem() { this.IsBrowser = RuntimeInformation.IsOSPlatform(OSPlatform.Create("browser")); }
is affected by this bug:
https://issuetracker.unity3d.com/issues/notsupportedexception-thrown-when-calling-any-member-of-system-dot-runtime-dot-interopservices-dot-runtimeinformation-in-webgl
and throw exception when calling GrpcChannel.ForAddress
Since this project already use modified Grpc.Net.Client only for WebGL I recommend to change this line to:
this.IsBrowser = true;

Sorry for the late reply. We have confirmed this issue and would like to address it.