How To Become A Matchmaking Host
With MatchMaker client class, hosting a matchmaking is made simple.
When you host matchmaking, you will be able to wait for other user clients to find your matchmaking and join.
The host and other matched user clients will receive a notification every time a new user client matches and joins/leaves the matchmaking.
What You Can Do As A Host
Here is the list of actions you may take as a matchmaking host:
Clear (abort) your matchmaking and notify all matched (joined) user clients.
Send custom messages to matched (joined) user clients.
Notify matched (joined) user clients of matchmaking completion. The host may decide when to send this out otherwise the server will automatically notify all user clients when the matchmaking reaches its member limit.
Synchronize client addresses of all user clients for Diarkis P2P (peer-to-peer).
Hosting A Matchmaking
NOTE: The example below assumes there is a matchmaking profile called RankMatch defined on the server.
Matchmaking Host Events
When you execute HostMatchmaking, the server sends a response to indicate if the operation was successful or not.
Event Raised When A new Match Joins
When a new matched user client joins, all matched (and joined) user clients will raise the OnMemberJoin event.
Event Raised When A Match Leaves
When a matched user client leaves, all matched (and joined) user clients will raise the OnMemberLeave event.
Event Raised When A Match Sends A Synchronizing Message
All matched (and joined) user clients may freely send messages to other matched user clients.
Event Raised When The Matchmaking is Completed
When the matchmaking reaches is MaxMatchMembers, the server raises the OnComplete event on all matched (and joined) user clients.
The host may freely trigger OnComplete as well.
Event Raised When Client Addresses For P2P Is Synchronized
All matched (and joined) user clients may synchronize client addresses to start P2P.
Synchronize
Event
Clear (Abort) The Matchmaking
You may abort your current matchmaking as a host. Clearing the matchmaking does NOT disband the matchmaking and the matched users remain with the matchmaking.
Clearing the matchmaking will make it ONLY remove itself from matchmaking searches.
Receive Server Response
Disbanding The Matchmaking
You may disband the matchmaking. By disbanding the matchmaking, you will be destroying the matchmaking completely and all matched users will be removed from the matchmaking.
Receive Notification For Matchmaking Disbandment
Last updated