Re: NSURLSessionStreamTask
Re: NSURLSessionStreamTask
- Subject: Re: NSURLSessionStreamTask
- From: Jens Alfke <email@hidden>
- Date: Fri, 15 Apr 2016 10:19:20 -0700
> On Apr 14, 2016, at 6:40 PM, Daryle Walker <email@hidden> wrote:
>
> I just watched most of the WWDC 2015 videos, and one of the networking ones mentioned a “NSURLSessionStreamTask” class. There still doesn’t seem to be a lot of docs about it. Anyone (from Apple) want to share here?…
I’m interested in this too — it looks like the way to go for implementing WebSockets (or other protocols that start out HTTP and then upgrade.) First send the GET with the request to upgrade to WebSocket protocol, then when the 10x response is received, use NSURLSessionResponseBecomeStream as the disposition to get access to the stream.
TBH I probably won’t get around to this for a year or so because this API requires iOS 9 or macOS 10.11.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden