Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

example

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);
see

PlayerDisconnectedCommandInput for command's input shape.

see

PlayerDisconnectedCommandOutput for command's response shape.

see

config for MatchmakerServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PlayerDisconnectedCommandInput

Readonly middlewareStack