【发布时间】:2011-08-10 20:29:05
【问题描述】:
在我的项目I need to push some data from server to the client 就像facebook 一样,当some updates are performed in the clients profile 就像有人在客户端的墙上写东西时,Facebook 会自动将其推送到客户端。
目前I am using AJAX 继续check the DB for the updates。那是not a good practice。
我不想依赖客户端进行更新。我希望server should automatically push the data to the client side 在执行与客户端相关的一些更新时。
请建议一些网址或示例代码这样做......
提前谢谢.....
【问题讨论】:
-
您正在寻找push techniques。有很多实现,看看什么对你有好处。
标签: php zend-framework client-server