Skip to main content

Create a Matchmaking Request

Last updated on

To create a matchmaking request, you will need a ticket that includes a process for the request, as well as preparation for a new channel and a party.

// store userId as waiting ticket and look for all users in database
createTicketErr := titleMMService.createTicket(namespace, gameMode, userId, 1, 1)
if createTicketErr != nil {
log.Print(createTicketErr)
message := "Unable to create ticket."
response := events.APIGatewayProxyResponse{StatusCode: http.StatusInternalServerError, Body: message}
return response, nil
}