Marks a player as disconnected.
If players are not marked as disconnected, lobbies will result with "ghost players" that the matchmaker thinks exist but are no longer connected to the lobby.
Use a bare-bones client and the command you need to make an API call.
import { MatchmakerServiceClient, PlayerDisconnectedCommand } from "@rivet-gg/matchmaker"; // ES Modules import // const { MatchmakerServiceClient, PlayerDisconnectedCommand } = require("@rivet-gg/matchmaker"); // CommonJS import const client = new MatchmakerServiceClient(config); const command = new PlayerDisconnectedCommand(input); const response = await client.send(command);
PlayerDisconnectedCommandInput for command's input shape.
input
PlayerDisconnectedCommandOutput for command's response shape.
response
config for MatchmakerServiceClient's config shape.
config
Marks a player as disconnected.
Ghost Players
If players are not marked as disconnected, lobbies will result with "ghost players" that the matchmaker thinks exist but are no longer connected to the lobby.
Use a bare-bones client and the command you need to make an API call.
import { MatchmakerServiceClient, PlayerDisconnectedCommand } from "@rivet-gg/matchmaker"; // ES Modules import // const { MatchmakerServiceClient, PlayerDisconnectedCommand } = require("@rivet-gg/matchmaker"); // CommonJS import const client = new MatchmakerServiceClient(config); const command = new PlayerDisconnectedCommand(input); const response = await client.send(command);PlayerDisconnectedCommandInput for command's
inputshape.PlayerDisconnectedCommandOutput for command's
responseshape.config for MatchmakerServiceClient's
configshape.