<!--
{
  "availability" : [
    "iOS: 4.1.0 - 5.0.0",
    "iPadOS: 4.1.0 - 5.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKMatchmakerViewController/setHostedPlayerReady(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKMatchmakerViewController(im)setHostedPlayerReady:"
  },
  "title" : "setHostedPlayerReady(_:)"
}
-->

# setHostedPlayerReady(_:)

Informs the controller that a player has joined a hosted match.

```
func setHostedPlayerReady(_ playerID: String)
```

## Parameters

`playerID`

The identifier string for a player that connected to the external server.

## Discussion

In a hosted match, when a new player connects to the server, your server needs to inform all participating devices connected to the match. Each participating device must separately call this method to update its matchmaking user interface.

---

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)