game-common / pragma.gameinstance / GameInstancePlugin / onGameServerFailedToConnectInitialPlayers /
onGameServerFailedToConnectInitialPlayers #
open suspend fun onGameServerFailedToConnectInitialPlayers(readOnlyGameInstance: GameInstance.ReadOnlyGameInstance, initialPlayers: List<GameInstance.ReadOnlyGamePlayer>)
Called when a game server fails to connect the initial players.
A game server fails to connect the initial players when it does not send a GameInstanceRpc.ConnectPlayersV1Request within the timeout defined by GameInstanceServiceConfig.connectPlayersTimeoutMillis when the first set of players are added to a game instance.
The game instance will be terminated, triggering the GameInstanceApi::OnGameInstanceTerminated event on the player’s game client for each player in the game instance.
Parameters #
readOnlyGameInstance | A read-only version of the game instance whose linked game server failed to connect the initial players. |
initialPlayers | The initial players who were not connected to the game server. |