game / pragma.gameinstance / GameInstanceService / declineReconnectV1 /
declineReconnectV1 #
suspend fun declineReconnectV1(session: PlayerSession, request: GameInstanceRpc.DeclineReconnectV1Request): GameInstanceRpc.DeclineReconnectV1Response
Prevent the player from reconnecting to the game instance. Game instance reconnect must be configured to OPTIONAL. A notification with the game instance id and player id will be sent to the game server running the game instance.
PragmaResultErrors
- PragmaError.GameInstanceService_PlayerNotInGameInstance - If the player is not in the game instance specified.
- PragmaError.GameInstanceService_CannotDeclineReconnect - If game instance reconnect is not configured to OPTIONAL.
- PragmaError.GameInstanceService_InternalError - If a lock on the specified game instance could not be held.