<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "macOS: 10.8.0 - 10.10.0",
    "tvOS: 9.0.0 - 18.4.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKPeerConnectionState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:@E@GKPeerConnectionState"
  },
  "title" : "GKPeerConnectionState"
}
-->

# GKPeerConnectionState

The state of a peer known to the session.

```
enum GKPeerConnectionState
```

## Overview

States are not mutually exclusive. For example, a peer can be available for other peers to discover while it is attempting to connect to another peer.

## Topics

### Constants

[`GKPeerStateAvailable`](/documentation/GameKit/GKPeerConnectionState/stateAvailable)

A peer not connected to the session, but one that the session can connect to.

[`GKPeerStateUnavailable`](/documentation/GameKit/GKPeerConnectionState/stateUnavailable)

A peer that is no longer interested in receiving connections.

[`GKPeerStateConnected`](/documentation/GameKit/GKPeerConnectionState/stateConnected)

A peer connected to the session.

[`GKPeerStateDisconnected`](/documentation/GameKit/GKPeerConnectionState/stateDisconnected)

A peer that disconnected from the session.

[`GKPeerStateConnecting`](/documentation/GameKit/GKPeerConnectionState/stateConnecting)

A peer attempting to connect to the session.

### Enumeration Cases

[`GKPeerStateConnectedRelay`](/documentation/GameKit/GKPeerConnectionState/stateConnectedRelay)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)