Post

Replies

Boosts

Views

Activity

Comment on Network.framework (websocket): read response headers set by the server
I was able to read the headers during handshake by doing the following: connection.stateUpdateHandler = { newState in switch newState { case .ready: if let metadata = connection.metadata(definition: NWProtocolWebSocket.definition) as? NWProtocolWebSocket.Metadata, let headers = metadata.additionalServerHeaders { } } Hope it helps
Replies
Boosts
Views
Activity
Apr ’25
Comment on Network.framework (websocket): read response headers set by the server
I was able to read the headers by doing the following: connection.stateUpdateHandler = { newState in switch newState { case .ready: if let metadata = connection.metadata(definition: NWProtocolWebSocket.definition) as? NWProtocolWebSocket.Metadata, let additionalServerHeaders = metadata.additionalServerHeaders { } } } Hope this helps
Replies
Boosts
Views
Activity
Apr ’25
Comment on PHPickerFilter doesn't always apply in Collections tab when using PHPickerViewController
Thanks for the quick reply! I’ve filed a report with an Xcode project attached and included reproduction steps. Feedback ID: FB20104294
Replies
Boosts
Views
Activity
Sep ’25
Comment on Happy Eyeballs cancels also-ran only after WebSocket handshake (duplicate WS sessions)
FB20929670 Thanks!
Replies
Boosts
Views
Activity
Nov ’25