There are a couple other options for long polling that are worth
investigating:
- Ruby (MacRuby?) and Juggernaut
- Nginx Push Module -
http://pushmodule.slact.net/
- Node.js
http://wiki.github.com/ry/node
- Your own long polling ObjC server, as you probably only need to
worry about a single client the above are all pretty heavy weight.
- Build a simple in queue which will empty 99% of the time.
- ObjC server that won't send any data to the client until there is
something in the queue. Other wise it will "hang" the connection, not
sending any data.
- Have your Cappuccino app connect to the ObjC server, if there is
nothing in the queue, it will also "hang" waiting for data.
- When you add something to the queue, send it to the client
(Cappuccino). This probably should be javascript that can be eval'ed.
- The Cappuccino client gets the data and closes the connection,
then in your Cappuccino delegate reconnect. Repeat the above.
- The queue just lets you throw a bunch of ops at your Cappuccino
app at once, so each time it reconnects it will get the next operation
and reconnect, etc until the queue is empty.
Tys
On Nov 24, 10:16 am, Antonio Salazar Cardozo <
savedfastc...@gmail.com>
wrote:
> >> For more options, visit this group athttp://
groups.google.com/group/objectivej?hl=en