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).
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
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 oldTCP
connection overNWConnection
is proxied by default, but then suddenly broken if I changeNWEndpoint
fromNWEndpoint.HostPort
toNWEndpoint.URL
with schemewss
(schemehttps
works over proxy).Thanks a lot in advance!