This plugin allows to stream xajax response commands to the client using so called "comet streaming". While the streaming process is running you can still fire any other XHRs in the background.
The zip file contains the latest xajax 0.5 SVN version, the preinstalled comet plugin as well as an example file.
download version 0.2.1
Since the IE doesn't support multipart XHRs I had to create a fallback method using a hidden iframe (no polling!). Avoid streaming large amounts of data or LONG (I mean hours) time streaming, since it will increase the memory usage in IE.
I wrote an experimental IRC chat using this plugin to test the functionality and it worked fine (even for hours), but you have to keep an eye on your script's memory usage.
Imagine you have 100 users using your application at the same time and each process uses 10MB of RAM. 100x10MB = 1000MB RAM!
This plugin is not meant to replace any socket server solution that is running all the time in background. It fills the gap between common asynchronous
XHRs and 'high-end' socket based solutions in the simplified xajax way.
To reduce the load on the webserver as well as the server-client traffic this plugin triggers a sleep timeout right after flushing the response queue.
The sleep timeout raises the chances for other processes on the server to get some more cpu cycles from the kernel. ;)
The setup is quite easy and should be self explanatory when you look into the comet.php file. If you still have any questions or stuck getting it to work, join the xajax community forums.
Thanks for using this plugin.
Donations keep developers happy :)