In the introduction video of Google Wave they talk about a problem with chat in webapplications. In many webapplications you see a message like: <name> is typing.. (before the message is submitted)
Google came up with an idea “to show each character typed while typing” to avoid this annoying message.
How do you create something like that??
If I were writing a solution, I would use PHP sockets and use the UDP protocol which is more fitting for this scenario. UDP protocol is unreliable but much much faster than TCP which is most commonly used for communication. So I guess I would have a very lightweight PHP script that would send a couple bytes of data to a processing server using UDP. Use AJAX to send data to the PHP script. There will be of course delay, but UDP will speed up the transaction significantly.