question

364321644 avatar image
364321644 asked

cloud script matchmaker api

could cloud script access to matchmaker 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

Can you describe the specific scenario you are trying to enable? Given that this is posted as a question, the answer is that no, the Server API does not have access to the matchmaker, as the intent is that the client requests a slot in a session directly. But if you can describe in more detail what it is you're trying to do, we may be able to provide some recommendations.

2 comments
10 |1200

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

Denzie Gray avatar image Denzie Gray commented ·
@Brendan

"the answer is that no, the Server API does not have access to the matchmaker"

Is this still true? Are we not able to call:
https://docs.microsoft.com/en-us/rest/api/playfab/multiplayer/matchmaking/getmatchmakingticket?view=playfab-rest

via Cloudscript?

0 Likes 0 ·
brendan avatar image brendan Denzie Gray commented ·

That answer is from 2017, and refers to the old matchmaker, which was only in the Client API. The new matchmaker is very different, and certain operations are expected to be done from a hosting server, like backfill tickets: https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/matchmaking/backfill-tickets.

In general, the Matchmaker is designed for use with hosted servers, though you can use it for peer-to-peer games as well.

In terms of calls from Cloud Script, any Entity API call can be made from legacy Cloud Script, though we would strongly urge all developers to adopt the newer Azure Functions Cloud Script.

0 Likes 0 ·

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.