game-common / pragma.gameinstance / GameInstancePlugin / onGameServerFailedToConnectMorePlayers /

onGameServerFailedToConnectMorePlayers #

open suspend fun onGameServerFailedToConnectMorePlayers(readOnlyGameInstance: GameInstance.ReadOnlyGameInstance, morePlayers: List<GameInstance.ReadOnlyGamePlayer>)

Called when a game server fails to connect more players.

A game server fails to connect more players when it does not send a GameInstanceRpc.ConnectPlayersV1Request within the timeout defined by GameInstanceServiceConfig.connectPlayersTimeoutMillis when additional players are added to a game instance.

The additional players will be removed from the game instance, triggering the GameInstanceApi::OnGameInstanceTerminated event on the player’s game client for each player being removed.

Parameters #

readOnlyGameInstance

A read-only version of the game instance whose linked game server failed to connect the additional players.

morePlayers

The additional players who were not connected to the game server.