Re: Using NSURLSessionStreamTask for WebSockets
Re: Using NSURLSessionStreamTask for WebSockets
- Subject: Re: Using NSURLSessionStreamTask for WebSockets
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 15 Mar 2017 08:15:53 +0000
On 14 Mar 2017, at 22:36, Jens Alfke <email@hidden> wrote:
> I assume this is one of those headers that the client can’t control. :(
Right. We actually list these headers in the docs these days.
<https://developer.apple.com/reference/foundation/nsmutableurlrequest>
> Is this something that could be fixed in the future, or is it considered a non-feature for NSURLSession to allow HTTP connection upgrades?
Yes. Enabling easier WebSocket client implementation was definitely a goal of the `.becomeStream` disposition, so it’s disappointing that it doesn’t work in practice.
Please file a bug about this, including the info you posted later down on this thread, then post the bug number here, just for the record.
<https://developer.apple.com/bug-reporting/>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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