Supporting relayed and authoritative modes at the same time via matchmaking?

@scottmk you’re correct that the MatchmakerMatched hook can return both a matchId (authoritative) or a token (relayed), but you need to rework your logic slightly.

If you want to create an authoritative match you’d return the matchId resulting from nk.MatchCreate(ctx, moduleName, nil), mind that this function does not accept an empty string as a moduleName, so you’d only invoke it only if you wish the created match to be authoritative.

If you’d like to create a relayed match, just return an empty string as the return value of MakeMatch and a token will be provided to the clients.