ConnectionProtocol fallback question
Options
Supposing I connect approx like this in my client code:
Or do I need to write that fallback code myself?
Thanks
ConnectionProtocol photonProtocol = ConnectionProtocol.Udp; PhotonPeer peer = new PhotonPeer( this, photonProtocol ); string serverHost = "myserver-hostname:5055"; string serverAppName = "ChickieDominos3"; peer.Connect( serverHost, serverAppName );Does Photon automatically switch to TCP or HTTP protocols, if it detects the client is behind a nasty firewall (e.g business that only allows http traffic for instance?)
Or do I need to write that fallback code myself?
Thanks
0
Comments
-
No it does not.
it will use what you provide and you will need to detect if the UDP failed and reconnect again with TCP.
The HTTP protocol to my knowledge is not implemented on UDP - TCP platforms so no http fallback (the only thing running on http is websockets but thats only present and supported in the js client)0 -
dreamora is spot on (thanks again, btw).
No automatic fallback is done currently.
As info: We are working on a http solution. It might be used as fallback but most likely it must be handled manually.0