Push Notification to Client

心已入冬 提交于 2019-12-01 12:22:52

Have you tried the framework Atmosphere? It supports websocket and also fallback to mentioned longpolling.

It can be used with jquery on the client side. Tutorial is here.

Well the easiest way is use ajax calls with long polling(jQuery comes to mind). Comet is fine too.

Use Spring STOMP WebSockets.. its very easy and simple https://spring.io/guides/gs/messaging-stomp-websocket/

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