URLSessionStreamDelegate
A protocol that defines methods that URL session instances call on their delegates to handle task-level events specific to stream tasks.
Declaration
protocol URLSessionStreamDelegate : URLSessionTaskDelegateOverview
In addition to these methods, be sure to implement the methods in the URLSessionTaskDelegate and URLSessionDelegate protocols to handle events common to all task types and session-level events, respectively.