<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKSession/disconnectTimeout",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKSession(py)disconnectTimeout"
  },
  "title" : "disconnectTimeout"
}
-->

# disconnectTimeout

A time interval that expresses how long the session waits before it disconnects a nonresponsive peer.

```
var disconnectTimeout: TimeInterval { get set }
```

## Discussion

The timeout is the waiting period before disconnecting a peer from the session. If a peer is disconnected, the delegate’s [`session(_:peer:didChange:)`](/documentation/GameKit/GKSessionDelegate/session(_:peer:didChange:)) method is called.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)