Jason Roelofs wrote:
1) Have the client AJAX poll every x seconds.
2) Have a Flash or Java applet that opens a socket to the server and is able
to process the received data (Juggernaut is great for this, yes it does use
Per my "how to chat" research, a responsive chat application is primarily an illusion. (GChat shall go where few dare tread!)
You can't tell the difference between another chatter taking 15 seconds to write a reply, and your own browser taking 15 seconds to deliver it.
Each time you submit a message, if the message is non-blank, the chatter action pushes the chat into the database, then fetches any new chat from the database, and returns it in the response. The result appears instant, and you can't tell that other people are slow.