---
title: disconnectTimeout
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gksession/disconnecttimeout
---

# disconnectTimeout

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

## Declaration

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

## Discussion

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:) method is called.

## See Also

### Working with Connected Peers

- [setDataReceiveHandler(_:withContext:)](gamekit/gksession/setdatareceivehandler(_:withcontext:).md)
- [send(_:toPeers:with:)](gamekit/gksession/send(_:topeers:with:).md)
- [sendData(toAllPeers:with:)](gamekit/gksession/senddata(toallpeers:with:).md)
- [disconnectFromAllPeers()](gamekit/gksession/disconnectfromallpeers().md)
- [disconnectPeer(fromAllPeers:)](gamekit/gksession/disconnectpeer(fromallpeers:).md)
