sessionMode
The mode the session uses to find other peers.
Declaration
var sessionMode: GKSessionMode { get }Discussion
The session mode changes the behavior of the session when isAvailable is set to true.
A GKSessionMode.server session advertises itself to local devices using its session ID.
A GKSessionMode.client session searches for local devices advertising the same session ID. As it discovers available and compatible peers, it calls the delegate’s session(_:peer:didChange:) method.
A GKSessionMode.peer session both advertises as a server and searches as a client.