@andreabiagini5/applicazioni-e-servizi-web-project - v1.1.3
    Preparing search index...
    • Creates a new match if possible for the given player. If no match is found, the player will be added to the matchmaking queue. If no player is given, it will try to find a match for any player in the queue.

      Parameters

      • OptionalrequestingUsername: string

        The username of the player.

      Returns Promise<[string, string, string]>

      An object containing the usernames of the matched players and the match ID, or undefined if no match was found.