> On Jul 15, 2015, at 4:54 AM, Quinn The Eskimo! <eski...@apple.com> wrote: > > One thing to note is that the current beta OSes have NSURLSessionStreamTask, > and you can convert a data task into a stream task via the > NSURLSessionResponseBecomeStream (and from there capture the streams from the > stream task to get an NS{Input,Output}Stream pair). I /think/ that allows > you to implement WebSockets very easily, although I must admit that I haven't > tested this stuff myself yet.
Oh wow, that’s really interesting! It must have been mentioned in a WWDC session I missed, or not at all. (Didn’t see it in the Foundation release notes, either.) From the doc-comment it does sound like this gives direct access to the socket without any funny business about chunk encoding, which implies it would work for WebSockets… I’ll have to try it out in a year or two, when I can consider abandoning iOS 8 / Yosemite support :-/ —Jens
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com