I am trying to retrieve the MatchId
from Matchmaker in my server instance. As I understand, I should use the allocation uuid found in server.json
to retrieve the MatchmakingResults
value that allocated my instance.
The current documentation makes a mention of using the sdk like this:
var payloadAllocation = await MultiplayService.Instance.GetPayloadAllocationFromJsonAs<MatchmakingResults>();
However, the namespace MultiplayService
is not included in the new com.unity.services.multiplayer
package.
Should I also be installing the latest multiplay package that contains the GetPayloadAllocationFromJsonAs
method?
or will Unity.Services.Matchmaker.MatchmakerService.Instance.GetMatchmakingResultsAsync work in the same way if I pass in the allocation uuid?
As an alternative, I also see in the docs a mention of send this request
curl -X GET http://localhost:8086/payload/<allocation_uuid>
Will this work as an alternative to the mutiplay package?