• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSURLSessionStreamTask for WebSockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Using NSURLSessionStreamTask for WebSockets
      • From: Jens Alfke <email@hidden>
References: 
 >Using NSURLSessionStreamTask for WebSockets (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using NSURLSessionStreamTask for WebSockets
  • Next by Date: Re: Using NSURLSessionStreamTask for WebSockets
  • Previous by thread: Re: Using NSURLSessionStreamTask for WebSockets
  • Next by thread: Re: Using NSURLSessionStreamTask for WebSockets
  • Index(es):
    • Date
    • Thread