Instance Method

disconnectPeer(fromAllPeers:)

Disconnects a connected peer from all peers connected to the session.

Declaration

func disconnectPeer(fromAllPeers peerID: String!)

Parameters

peerID

A string identifying the peer to disconnect.

See Also

Working with Connected Peers

func setDataReceiveHandler(Any!, withContext: UnsafeMutableRawPointer!)

Sets the object that handles data received from other peers connected to the session.

Deprecated
func send(Data!, toPeers: [Any]!, with: GKSendDataMode)

Transmits a collection of bytes to a list of connected peers.

Deprecated
func sendData(toAllPeers: Data!, with: GKSendDataMode)

Transmits a collection of bytes to all connected peers.

Deprecated
var disconnectTimeout: TimeInterval

A time interval that expresses how long the session waits before it disconnects a nonresponsive peer.

Deprecated
func disconnectFromAllPeers()

Disconnects the session from all connected peers.

Deprecated