Basically, I have a server and mobile application. Mobile application subscribes on events from server. Server than, after some time publishes events to all subscribers (yup, good old publish/subscribe).
The thing is that the server uses HTTP to send notifications. So I need within my application something like HTTP server for handling those requests asynchronously (i.e. without any special initial request).
Is there any facility available? I am thinking about creating a Socket and Listen to it, but here the problem arises of conversion of HTTP from Socket data. I've already read some questions around StackOverflow, but none of them points the same problem directly. Or did I miss something? Anyway, the help is very welcome and appreciated.