Quantcast
Channel: Questions in topic: "nodejs"
Viewing all articles
Browse latest Browse all 130

UnitySocketIO-WebSocketSharp hangs on a handshake loop using Unity webplayer

$
0
0
I'm using [UnitySocketIO-WebSocketSharp][1] to connect with a node.js server. If i run the app on Unity3D in standalone mode, everything goes well; the handshake happens normally and the websocket runs smoothly. But, if i run in webplayer mode the socket just gives me an eternal handshake loop. The code i'm using on Unity is exactly [the one from the example][2]. On the server i'm using a [crossdomain.xml][3], and [this is what i'm using as the server][4] Here's the output from the server. The blue arrow indicates the moment i play the Unity scene: ![alt text][5] [1]: https://github.com/kaistseo/UnitySocketIO-WebSocketSharp [2]: https://github.com/kaistseo/UnitySocketIO-WebSocketSharp/blob/master/Example/CMain.cs [3]: https://gist.github.com/jorgeguberte/9465786 [4]: https://gist.github.com/jorgeguberte/9465801 [5]: /storage/temp/23374-handshakeloop.png

Viewing all articles
Browse latest Browse all 130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>