6

I'm using UnitySocketIO-WebSocketSharp to connect with a node.js server. If I run the app on Unity 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. On the server i'm using a crossdomain.xml, and this is what I'm using as the server

Here's the output from the server. The blue arrow indicates the moment I play the Unity scene:

enter image description here

user3071284
  • 6,955
  • 6
  • 43
  • 57
Jorge Guberte
  • 10,464
  • 8
  • 37
  • 56
  • Did you find a solution for your peoblem? – aggsol Mar 19 '15 at 08:23
  • I use this fork of websockets sharp. I have tested it on webplayer, android, and ios with success. I have not tested it with node.js. https://github.com/sta/websocket-sharp – nVentimiglia May 07 '15 at 21:30

0 Answers0