Hello all, just joined the list. I tried to find a way to search the list history (gmane, nabble, etc) but didn''t find anything. Has anyone tried implementing a cometd or bayeux server using eventmachine? I''m curious about Comet, and Ruby concurrency handling as well. Thanks.
On Dec 6, 2007 11:17 AM, Kevin Williams <kevwil at gmail.com> wrote:> Hello all, just joined the list. I tried to find a way to search the > list history (gmane, nabble, etc) but didn''t find anything. > > Has anyone tried implementing a cometd or bayeux server using > eventmachine? I''m curious about Comet, and Ruby concurrency handling > as well. Thanks. >Yeah, we tried it. It was a pain because Bayeux turned out to be very poorly-defined. We reached out to the people behind comet and they never replied. We really ought to do something with this. Comet/bayeux seems to be one of the most reinvented wheels out there. Chat servers are another one. EM now has a built-in implementation of the Stomp protocol, so we should just implement chat and put it in the package. A jabber implementation would also be nice. Jabber is a challenge because none of the available Ruby XML packages support open-ended streams of XML stanzas. I wrote a wrapper over libxml2 that does that, however, so we could do an evented jabber implementation too. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071206/1cde09a5/attachment-0001.html
On Dec 6, 2007 9:27 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> > We really ought to do something with this. Comet/bayeux seems to be one of > the most reinvented wheels out there. Chat servers are another one. EM now > has a built-in implementation of the Stomp protocol, so we should just > implement chat and put it in the package. > > A jabber implementation would also be nice. Jabber is a challenge because > none of the available Ruby XML packages support open-ended streams of XML > stanzas. I wrote a wrapper over libxml2 that does that, however, so we could > do an evented jabber implementation too. >While we''re on the subject, I need a fast and simple way to do the equivalent of ''tail -f'' (that is, of an actual file in the server''s filesystem) in a web browser. Comet was the first thing that came up, and so I''m still thinking of high-level strategies. Suggestions welcome. Best regards, --Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071206/8003c180/attachment.html
On Dec 6, 2007 1:06 PM, Michael S. Fischer <michael at dynamine.net> wrote:> On Dec 6, 2007 9:27 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote: > > > > > We really ought to do something with this. Comet/bayeux seems to be one > > of the most reinvented wheels out there. Chat servers are another one. EM > > now has a built-in implementation of the Stomp protocol, so we should just > > implement chat and put it in the package. > > > > A jabber implementation would also be nice. Jabber is a challenge > > because none of the available Ruby XML packages support open-ended streams > > of XML stanzas. I wrote a wrapper over libxml2 that does that, however, so > > we could do an evented jabber implementation too. > > > > While we''re on the subject, I need a fast and simple way to do the > equivalent of ''tail -f'' (that is, of an actual file in the server''s > filesystem) in a web browser. Comet was the first thing that came up, and > so I''m still thinking of high-level strategies. Suggestions welcome. > >Here''s a couple of alternatives: In IE, you can simply hold an XHR connection open and send data to it from tail -f as it comes in, and IE will stream it visibly. In Firefox, you can use x-multipart-replace. Both of these are supported in the Web framework "Unicycle," which was written for EM. If you search the archives of this ML, you''ll find a distro of it. If you choose to investigate this, let me know, because I''m sure there are no howto''s for what you''re trying to do. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071207/e8a2936c/attachment.html