pusher / NWWebSocket

A WebSocket client written in Swift, using the Network framework from Apple.
MIT License
123 stars 25 forks source link

HTTP Proxy setting via NWParameters.PrivacyContext.proxyConfiguration #48

Open yyaroshevich opened 8 months ago

yyaroshevich commented 8 months ago

Hello @benjamin-tang-pusher I've found out your question regarding proxying of NWConnection when used with WebSocket here: https://developer.apple.com/forums/thread/684489 Could you please share if you were able to make NWConnection to work over proxy when configured to perform WebSocket connection? So far I have no luck. This is very strange for me that plain old TCP connection over NWConnection is proxied by default, but then suddenly broken if I change NWEndpoint from NWEndpoint.HostPort to NWEndpoint.URL with scheme wss (scheme https works over proxy).

Thanks a lot in advance!

benw-pusher commented 8 months ago

Hi, We haven't been able to resolve this issue at this time, it appears to be an issue with the underlying NWConnection/NWListener functions provided by Apple