send(_:toPeers:with:)
Transmits a collection of bytes to a list of connected peers.
Declaration
func send(_ data: Data!, toPeers peers: [Any]!, with mode: GKSendDataMode) throwsParameters
- data:
The bytes to be sent.
- peers:
An array of Nsstring objects identifying the peers that should receive the data.
- mode:
The mechanism used to send the data.
Discussion
The session queues the data and transmits it in the order it was queued. Data transmitted unreliably may be received out of order by the other peers.