game / pragma.matchcapacity / MatchCapacityService / reportCapacityV2 /

reportCapacityV2 #

suspend fun reportCapacityV2(session: PartnerSession, request: MatchCapacityRpc.ReportCapacityV2Request): MatchCapacityRpc.ReportCapacityV2Response

Reports available game server capacity. Called by game servers. Response can include a list of matches for the game server to start.

Note: If capacity generated outside the Pragma flow is reported in this way it can exceed the maximum configured value managed by the capacity service.

PragmaResultErrors

  • PragmaError.MatchCapacityService_GameVersionMismatch - If server version unexpectedly changes for a game server between reports.
  • PragmaError.MatchCapacityService_GameServerZoneMismatch - If game server zone unexpectedly changes for a game server between reports.