all. I have a site with a small chatroom, and my users are increasingly eating my bandwidth, and after having searched for some miracle, I finally stumped onto something sexy:) called, Long Polling from what I understand,
it is a simple method that is supposed to keep the connection betwe en server/client UN-interapted for a longer period of time, and by doing so reduces the need for continues requests by 90%.
Now, I could be wrong. but, how is this "Simple" thing created. Below, you can see my chat script, I created from a tutorial using Jquery. It works fine, but it is without longpolling capabilities.
Here is the PHP and Javascript code (I can't paste them here, as they are too long).
Now, the question is how do I inject the long poll script into my already built codes?