Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

jslib from WebSocket doesn't receive data

$
0
0
I'm trying to use the [websocket package][1] unity provides from the asset store to connect to my server from WebGL, but for some reason I cannot receive messages; only send them when testing in the browers , but works fine in the editor. I've found the reason it works in the editor is because in all other platforms except WebGL, it uses websocket-sharp.dll, and in WebGL it replaces the dll for a [jslib][2]. The client [WebSocket wrapper][3] The client [echo script][4] The [server code][5] Any help appreciated, thanks! [1]: https://www.assetstore.unity3d.com/en/#!/content/38367 [2]: https://gist.github.com/nug700/697a1ec4e0d4183847bf [3]: https://gist.github.com/nug700/72c15f62b2a7accbfc3f [4]: https://gist.github.com/nug700/0b217d43077918ba6ae6 [5]: https://gist.github.com/nug700/756ec4f370d7a84cd004

Viewing all articles
Browse latest Browse all 2390

Trending Articles