Unity WebGL and Photon Realtime - no connetion to name server

Hi, we are prototyping a solution with Unity and Photon realtime.

On Windows builds everything works perfect but when building to WebCL the client is stuck in the status "ConnectingToNameServer". There is no additional error message in the log.

What could be the reason for this?

Comments

  • Also delivered example project with Realtime shows same behavior. As WebGL it is compiling bot not connecting.

  • Make sure the Photon\PhotonLibs\WebSocket folder is in your Assets.

    Please add a SupportLogger instance to some GameObject, assign the LoadBalancingClient to make it log additional info. Also, increase the logging level.

    Make sure to check the return value of Connect...(), too.