Matchmaking
Elements supports matchmaking for online gaming, including one vs one or group matches with teams.
Elements supports simple one vs one matchmaking for connected games. Players create Match requests, monitor the state of the Match, and finally enter a game based on the logic of the Match.
This ties directly into the scripting engine because the Match system will execute a single Cloud function upon completion of the Match.
Matchmaking Process
The detailed process for handling a Match is as follows:
Create a Matchmaking Scheme under the Application Configuration section for your Application
Deploy the Cloud Function code to service the match
From the client application, POST the match request.
Poll, using GET, based on the specific Match identifier(s). Elements will delay the response until the Match is completed, or a timeout occurs.
Upon finding a matching Profile, Elements will execute the matchmaking Cloud Function and supply the result via the Match object.
The Cloud function may perform any operation and return a string indicating the result of the operation. The result should be something like a game ID or IP address of a game server the player may join.
TODO: Creating Matchmaking Configuration Doc
Last updated