sendData(toAllPeers:with:)
Transmits a collection of bytes to all connected peers.
Declaration
func sendData(toAllPeers data: Data!, with mode: GKSendDataMode) throwsParameters
- data:
The bytes to be sent.
- mode:
The mechanism used to send the data.
Discussion
The session queues the data and transmits it when the network is free.