Finds a lobby based on the given criteria. If a lobby is not found and prevent_auto_create_lobby is true, a new lobby will be created.
prevent_auto_create_lobby
true
Use a bare-bones client and the command you need to make an API call.
import { MatchmakerServiceClient, FindLobbyCommand } from "@rivet-gg/matchmaker"; // ES Modules import // const { MatchmakerServiceClient, FindLobbyCommand } = require("@rivet-gg/matchmaker"); // CommonJS import const client = new MatchmakerServiceClient(config); const command = new FindLobbyCommand(input); const response = await client.send(command);
FindLobbyCommandInput for command's input shape.
input
FindLobbyCommandOutput for command's response shape.
response
config for MatchmakerServiceClient's config shape.
config
Finds a lobby based on the given criteria. If a lobby is not found and
prevent_auto_create_lobbyistrue, a new lobby will be created.Use a bare-bones client and the command you need to make an API call.
import { MatchmakerServiceClient, FindLobbyCommand } from "@rivet-gg/matchmaker"; // ES Modules import // const { MatchmakerServiceClient, FindLobbyCommand } = require("@rivet-gg/matchmaker"); // CommonJS import const client = new MatchmakerServiceClient(config); const command = new FindLobbyCommand(input); const response = await client.send(command);FindLobbyCommandInput for command's
inputshape.FindLobbyCommandOutput for command's
responseshape.config for MatchmakerServiceClient's
configshape.