game-common / pragma.gameinstance / GameInstancePlugin / onGameServerFailedToConnectInitialPlayers /
onGameServerFailedToConnectInitialPlayers #
open suspend fun onGameServerFailedToConnectInitialPlayers(gameInstanceSnapshot: GameInstance.GameInstance, initialPlayers: List<GameInstance.GamePlayer>)
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.
Default implementation: terminates the game instance.
Parameters #
gameInstanceSnapshot | 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. |