Skip to content Skip to sidebar Skip to footer

How To Implement Server Push / Long Polling / Comet Using PHP And Javascript

How can I implement the comet / server push design pattern using PHP and Javascript? Essentially what I would like is something like this: User clicks a 'submit' button Javascrip

Solution 1:

Comet with PHP has some tricky issues with scaling. An alternative would be a SaaS solution, such as WebSync On-Demand. (Disclaimer: I work there). That way you don't have to worry about any of the behind the scenes stuff, and you can just get your server-push functionality.


Solution 2:

There are a couple of very good examples at: How to implement comet with PHP


Solution 3:

Most of the services use the Client-initiated requests, but there's also Comet. There's a few articles out there on it.


Post a Comment for "How To Implement Server Push / Long Polling / Comet Using PHP And Javascript"