Studied a ton on AJAX because I am making a real-time application from Javascript and PHP. It should be updated without refreshing the page and in real time.
I tried polling the server using setInterval (), but for this to be fast, I had to have it every second. However, it seems to use a ton of bandwidth. However, it works, and I have a plan with my hosting provider for "unlimited bandwidth." This seems like a lot of stress on the site, although I wanted to use Push technology.
Learning how to configure Push was extremely difficult. From what I was able to figure out, you need to host some type of push or comet server. I also looked into websockets, but there you also had to place it yourself. I donβt understand how to do this when I do not have a server computer, and there is no documentation about this on my site of hosting providers.
Do you have a host server host provider? Is there a way to get the server without hosting it? This seems like a much better poll choice, but at the same time it seems very confusing.
source share