<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChatClient/voiceChatService(_:sendRealTime:toParticipantID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKVoiceChatClient(im)voiceChatService:sendRealTimeData:toParticipantID:"
  },
  "title" : "voiceChatService(_:sendRealTime:toParticipantID:)"
}
-->

# voiceChatService(_:sendRealTime:toParticipantID:)

Asks the client to send data to a participant that must get there quickly.

```
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, sendRealTime data: Data, toParticipantID participantID: String)
```

## Parameters

`voiceChatService`

The service that requested the transmission.

`data`

The data to send.

`participantID`

A string that uniquely identifies the participant to send the data to.

## Discussion

An implementation of this method maps the `participantID` string to a known participant and transmits the data to them. Data transmitted by this method can be sent unreliably. When the client on the other end receives this data, it should forward it to the voice chat service by calling the service’s [`receivedRealTime(_:fromParticipantID:)`](/documentation/GameKit/GKVoiceChatService/receivedRealTime(_:fromParticipantID:)) method.

---

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)