Check server connection at the beginning of game

0 votes
Hi All

I want to check if there is a connection to server or not at the beggining of my game. After the test, I will either show an error or I will direct user to connect panel. What is the way of doing it? should I do dummy api call for it? Like GetCurrentTime()?

Thanks
asked May 10, 2016 in Unity by gokhan (20 points)

1 Answer

+1 vote
Hi Gokhan,

Could you please elaborate your query more like which server you want to connect App42 Cloud API or AppWarp? If you want to connect to Appwarp server, then when you call connect API, youwill get connection_error.

If you are looking for App42 Cloud API then you can make a call from timer service to check the time on the server and based on the response from the server, you can take further actions.

Let us know if you require any other help from our side.

We will be happy to assist!!!

Thanks.
answered May 11, 2016 by rajeev.etc (1,660 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...