[Twisted-Python] long-polling channels with Twisted

hi, is there any example how to implement long-polling channel with Twisted while using reactor()? Thank you.

Long-polling/push over HTTP from server to clients. Quoting "Itamar Turner-Trauring (aka Shtull-Trauring)" <itamar@itamarst.org>:
On Wed, 2009-11-18 at 18:22 -0500, vitaly@synapticvision.com wrote:
hi, is there any example how to implement long-polling channel with Twisted while using reactor()?
What is a "long-polling channel"?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Hi,
is there any example how to implement long-polling channel with Twisted while using reactor()?
I'm not sure what you mean either, but perhaps you're talking about an HTTP long polling/comet thing? You might want to check out orbited (http://orbited.org/) which is a server-side comet implementation using Twisted. I've been interested in a plugin for nginx called nginx_http_push (http://pushmodule.slact.net/) that could allow for a more efficient implementation of long-polling/push over HTTP. All you need to do is POST to a resource server-side (say, using Twisted) and nginx and the plugin take care of pushing out the message to clients. Cheers, Reza -- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun

Found this one easily to suite in current environment: http://code.google.com/p/amfast/wiki/MessagingServer#Producer/Consumer_Messa... Quoting "Reza Lotun" <rlotun@gmail.com>:
Hi,
is there any example how to implement long-polling channel with Twisted while using reactor()?
I'm not sure what you mean either, but perhaps you're talking about an HTTP long polling/comet thing? You might want to check out orbited (http://orbited.org/) which is a server-side comet implementation using Twisted.
I've been interested in a plugin for nginx called nginx_http_push (http://pushmodule.slact.net/) that could allow for a more efficient implementation of long-polling/push over HTTP. All you need to do is POST to a resource server-side (say, using Twisted) and nginx and the plugin take care of pushing out the message to clients.
Cheers, Reza
-- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

If you're referring to something like XEP-0124 (BOSH) http://xmpp.org/extensions/xep-0124.html then the short answer is, I did only find a BOSH implementation done with Twisted as part of an XMPP over BOSH connection manager implementation called punjab. http://code.stanziq.com/punjab Interesting in this particular context could be strophe http://code.stanziq.com/strophe/ I'm currently tinkering with a minimal BOSH sample providing a delayed echo server which allows me to test the behavior of mobile 3G apps Cheers, Werner vitaly@synapticvision.com wrote:
hi, is there any example how to implement long-polling channel with Twisted while using reactor()?
Thank you.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (4)
-
Itamar Turner-Trauring (aka Shtull-Trauring)
-
Reza Lotun
-
vitaly@synapticvision.com
-
Werner Thie