How to implement Server push / long polling / comet using PHP and Javascript

半腔热情 提交于 2019-12-01 09:48:00

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.

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!