问题
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