delegate
The delegate for the session object
Declaration
weak var delegate: (any WCSessionDelegate)? { get set }Discussion
You must assign an object conforming to the WCSessionDelegate protocol to this property before calling the activate() method. The delegate is responsible for responding to session-related changes, for processing incoming data, and for responding to errors.
For more information about implementing your delegate object, see WCSessionDelegate.