Contents

sendData(toAllPeers:with:)

Transmits a collection of bytes to all connected peers.

Declaration

func sendData(toAllPeers data: Data!, with mode: GKSendDataMode) throws

Parameters

  • 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.

See Also

Working with Connected Peers