AJAX based chat plugin (beta)

Marnen Laibow-Koser wrote:

Are you sure? Wouldn't this play havoc with XHR ready states?

No, but I'm sure you can google it.

All chats you see on the web are in Flash, right?

Wrong. I've seen lots of Ajax chats on public, production sites. I even worked on a site where my colleague implemented one, I believe from scratch (I did the main Ajax app interface). That was in PHP, though, not Ruby.

How do you solve the basic problem that HTTP is Pull and Chat is Push? If I use periodically_call_remote, and set the frequency low, the chats arrive too slowly. If I set it high, then both the server and browser bog down with frequent requests to Pull nothing.

How do you solve the basic problem that HTTP is Pull and Chat is Push? If I use periodically_call_remote, and set the frequency low, the chats arrive too slowly. If I set it high, then both the server and browser bog down with frequent requests to Pull nothing.

long polling :slight_smile:

Fred

You should see the Firebug console log while in Campfire chat.

  Marko

So you are firing a AJAX call on click of ENTER , right ?

Then how do you handle when you have many channels , like many rooms in CHAT ?

I like juggernaut because it does the same without any hastle , only issue is its FLASH based but its lovley .

Also XHRR based chat servers are cool .