Closed tonygiang closed 3 years ago
Just an update: I traced down exactly where the connection always fails on Unity iOS client: this line in Colyseus.Client.CreateMatchMakeRequest
:
req.isNetworkError
will be true after this line and the function quits.
This issue still remains in the 0.14.5 client.
This turned out to be an inexplicable iOS-specific quirk. By all online documentation, setting NSAllowsArbitraryLoads in XCode's propertly list to true should allow all http connections, but for some reason, our builds refuse to acknowledge this property and we had to add our Colyseus server domain to the exception list. I'm just about fed up with Apple products. But anyway, this issue is not related to Colyseus. Closing.
Tested on the latest Unity client (0.14.4): When ran on an iOS device, the join room task returned by
Client.JoinOrCreate
always finish immediately withFaulted
status. No connection attempt is received on server-side (running Colyseus 0.14.13).When running inside Unity Editor on MacOS, Colyseus Unity client is still able to connect.