websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Working in Unity WebGL

Open salmansaleem32 opened this issue 6 years ago • 6 comments

Hi, are this WebSockets-Sharp working in WebGL build ? I am connecting to SSL server and its working fine in the editor but when I build and run this project, browser stops responding and prompts to kill or wait for the task. My project only contains a button and text component, facebook sdk and Web-Sockets-Sharp solution, so there is no such assets that violates the memory or takes time to load. Thanks in advance.

salmansaleem32 avatar Jun 19 '19 12:06 salmansaleem32

@salmansaleem32 Did you manage to make it work? I have to use websocket in the next project so I wanna know first.

qapquiz avatar Jun 26 '19 15:06 qapquiz

As mentioned in the README, it's not the web platform is not supported. I think it would be possible by writing a JavaScript plugin though (https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html)

Cretezy avatar Jun 28 '19 03:06 Cretezy

@salmansaleem32 Did you manage to make it work? I have to use websocket in the next project so I wanna know first.

Hi @qapquiz I used another solution to make it work. Its also available on github and its working fine on editor as well as browser. Let me share you the link. https://github.com/zoecarver/unityWS

salmansaleem32 avatar Jul 02 '19 07:07 salmansaleem32

Any updates on 2021?

softmarshmallow avatar May 22 '21 20:05 softmarshmallow

The ebst would be Unity Technologies switch to Blazor Webassembly and drop javascript finally

karstenpt avatar Dec 02 '21 10:12 karstenpt

It will be nice to support web

D4rWiNSS avatar Aug 25 '23 13:08 D4rWiNSS