Open MartinMbae opened 2 years ago
WebGL does not work for me either. However, I have other errors.
I think I found the solution.
using System.Net.WebSockets
does not work on WebGL or Android/iOS.
This framework would need to be replaced. Can you do that @sebheron ?
@brogrammer1337 How did you figure this out? Just curious
Maybe, I'll have to look into it.
@sebheron I have created a project myself using websockets....
The problem with WebGL is that the normal websockets don't run in the browser. They have to be programmed in javascript and then imported. There are already some solutions for this.
With WebGL it is most certainly due to this problem. I'm just guessing that it's the same problem on iOS and Android. If you google "whether System.Net.WebSockets works on iOS", you will find similar problems.
As I see it, only the framework for the websockets needs to be swapped.
@brogrammer1337 Ah okay, it's useful to know all this.
There's NativeWebSockets which might solve this problem then. Feel free to give it a go, I'll try this out myself when I get some spare time.
When building for WEB, I get the error "Dynamic linking is not supported in WebAssembly builds due to limitations to performance and code size." Is there a workaround for this.