I have an iPhone application which works with 2 services:
- work with REST service over http - use AFNetworking
- have XMPP chat over TCP - use XMPPFramework https://github.com/robbiehanson/XMPPFramework
My iPhone uses corporate network with proxy, so I set HTTP proxy in Settings http://qblx.co/1eJ9TwI
With this proxy settings all requests to REST service go through this proxy. But, my application connects direct to Chat server, without proxy.
How to make Chat works through proxy? As I can see, XMPPFramework uses GCDAsyncSocket as a transport https://github.com/robbiehanson/CocoaAsyncSocket
Do you have any suggestions how to setup Chat through proxy?
XMPP by default uses plain TCP socket connection, which is not able to route via HTTP proxy. You can: