After some more research on this subject, I believe that the best way to implement events sent by the server on iOS without WebKit is to use the custom NSConnection / NSRequest toolkit. I settled on ASIHTTPRequest . This library allows you to explicitly control the persistence attribute on the connection object (significant), manage data as it flows, save responses (for example, in local files), etc.
Not to mention the fact that it contains many other convenient extensions / settings in the field of network interaction (an improved reachability observer, a simplified API for async, a queue function, even the ability to load entire web pages (CSS, js and all).
On the server side, I use cyclone-sse (tornado) and nginx (as a reverse proxy). Interestingly enough, now I see that my SSEs are simulated simultaneously with both my iOS simulator and the browser subscriber. Cyclone even handles all the connections and gives me an API that supports a simple POST for push messages (also supports AMQP and Redit) ...
In short, ASIHTTPRequest was the perfect solution for me.
source share