Helge Heß on Nostr: Wrt WebSockets this says "Unless you have a specific reason to use URLSession, use ...
Wrt WebSockets this says "Unless you have a specific reason to use URLSession, use Network framework for new WebSocket code."
I wonder why, it states no reason. You'd think that the `URLSessionWebSocketTask` is just a higher lever wrapper around NW (which I've used successfully w/ WebSockets before).
https://developer.apple.com/documentation/technotes/tn3151-choosing-the-right-networking-api#WebSocket
I wonder why, it states no reason. You'd think that the `URLSessionWebSocketTask` is just a higher lever wrapper around NW (which I've used successfully w/ WebSockets before).
https://developer.apple.com/documentation/technotes/tn3151-choosing-the-right-networking-api#WebSocket