Comet on the iPhone (server push to the client)

I am seeking to establish a certain socket/COMET type of functionality from my server to my iPhone application. Basically, whenever the user manages to set an arbitrary object on the server’ Dirty, for example, update their address… feedback should be pushed from the server to any client that keeps real-time polling of the server. I think this is a buzzword, COMET. I know that web browser applications have DWR , So I thought, maybe it’s better to set a hidden UIWebView in each of my controllers so that I can use COMET out of the box from their javascript framework? Is there a more elegant way?
There are several solutions for using the STOMP client.

STOMP is very Simple and lightweight, very suitable for iPhone.

I used this one as my starting point and found it to be very good. It has some object allocation/memory leak issues, but once I master iPhone programming, these are easy to solve .

I hope it helps!

I am seeking to establish some kind of socket/COMET type functionality from my server to my iPhone application. Basically, whenever the user manages to be on the server When setting arbitrary objects to be’dirty’, for example, to update their address… Feedback should be pushed from the server to any client that keeps real-time polling of the server. I think this is a buzzword, which is COMET. I know web browsers The application has DWR, so I thought, maybe it’s better to set a hidden UIWebView in each of my controllers so I can use COMET out of the box from their javascript framework? Is there a more elegant way?

There are several solutions for using the STOMP client.

STOMP is very simple and lightweight, very suitable for iPhone.

< p>I used this one as my starting point and found it to be very good. It has some object allocation/memory leak issues, but once I master iPhone programming, these are easy to solve.

Hope it helps !

Leave a Comment

Your email address will not be published.