Re: Is it possible to use POE to develop COMET based web app?

David Davis <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Yes it's possible.  I've built a few iterations of comet servers in POE over
the years, but mine are mostly specialized for socket proxying.

What you really want is Eric Waters' module POE::Compoent::Server::Bayeux

http://search.cpan.org/~ewaters/POE-Component-Server-Bayeux-0.02/lib/POE/Component/Server/Bayeux.pm<http://search.cpan.org/%7Eewaters/POE-Component-Server-Bayeux-0.02/lib/POE/Component/Server/Bayeux.pm>
It comes with a client too
http://search.cpan.org/~ewaters/POE-Component-Server-Bayeux-0.02/lib/POE/Component/Client/Bayeux.pm<http://search.cpan.org/%7Eewaters/POE-Component-Server-Bayeux-0.02/lib/POE/Component/Client/Bayeux.pm>

If you download the package from here:
http://search.cpan.org/~ewaters/POE-Component-Server-Bayeux-0.02/<http://search.cpan.org/%7Eewaters/POE-Component-Server-Bayeux-0.02/>,
you'll find an htdocs dir with examples in it.
Demos like: chat, magnets, echo, time, etc

HTH

David Davis
☄ Software Engineer
http://xant.us/


On Wed, Apr 1, 2009 at 20:14, Roy M. <[email protected]> wrote:

> Hello,
>
> Read through the cookbook and found POE is very powerful!
>
> However, is it possibe to provide some hints/tutorial on developing
> COMET based web app?
>
> E.g. simple chat or echo, such as:
> http://blogs.divmod.com/2008/05/twisted-ajaxcomet-tutorial-pre-release.html
>
> It should be very useful.
>
> Thanks!
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.