How to update page for all users

烂漫一生 提交于 2019-12-20 06:47:06

问题


For example, i have page with comments. I want page update for all users watching that page, every time someone adds comment. I can do it, using ajax update every few minutes. But there mast be a cleverer way, may be some java EE service is using for this purpose?


回答1:


Take a look Server Push and Websocket examples, that are the terms to search for.



来源:https://stackoverflow.com/questions/22426637/how-to-update-page-for-all-users

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