Skip to main content

Class: AiMatchMakingClient

Client for the AI Matchmaking service. This service allows you to create matchmakers and insert entities into them. The service will then find matches for the entities.

Constructors

constructor

new AiMatchMakingClient(rpcManager)

@internal.

Parameters

NameType
rpcManagerRpcManager

Methods

createMatchMaker

createMatchMaker(matchMaker): Promise<MatchMaker>

Creates a new matchmaker with the given id, description, and categories.

Parameters

NameTypeDescription
matchMakerMmMatchMakerThe matchmaker to create.

Returns

Promise<MatchMaker>


getMatchMaker

getMatchMaker(matchMakerId): Promise<undefined | MatchMaker>

Retrieves an existing matchmaker by its ID.

Parameters

NameType
matchMakerIdstring

Returns

Promise<undefined | MatchMaker>


listMatchMakers

listMatchMakers(): Promise<MmMatchMaker[]>

Returns

Promise<MmMatchMaker[]>