question

ignat-nee avatar image
ignat-nee asked

Server api Get Servers List

Cheers!
We register server via playfab servers apis RegisterGame method.
But we have bug - sometimes server "dissapear" from games lists, and client's can't able to find him. But server app still running. We decide to fix it with checking Games List by server, and if server don't find self in list he register game again. The option for searching it's use client's GetCurrentGames method, but it's necessary to log in for this operation. I think it's unnecessary on server.

The question - is there any possibility to get list of current games on server, without clietn api?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Please have a look at this tutorial, which goes into detail on how to use externally hosted servers: https://api.playfab.com/docs/tutorials/external-game-servers. The key is that you must call the heartbeat API regularly, and within the expiration period set in your title (in the Settings tab, where you selected the externally hosted server setting). If you don't, we have to assume the server is no longer running, and so remove it from our tracking.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.