Sets the object that handles data received from other peers connected to the session.
- iOS 3.0–7.0Deprecated
- macOS 10.10–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.0–2.0Deprecated
The object you want the session to call when it receives data from other peers.
Arbitrary data to be passed to each invocation of the handler.
The handler must implement a method with the following signature:
where data contains the bytes received from a remote peer, peer is a string that identifies the peer, session is the session that received the data, and context is the same context that was passed into the original call to