Hi there.
How can I do for the title?
URLRequest
seems not to have property for protocols.
NSURLSessionWebSocketTask
seems to have either URLRequest
or protocols, but have neither of them.
What I want to do is setting both protocols and headers when using WebSocket.
Should I use Network.framework
instead?
Should I use Network framework instead?
Yes. That is, in fact, the advice we give in TN3151 Choosing the right networking API.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"