weixin_33690367 2018-07-04 09:49 采纳率: 0%
浏览 39

Grails 3推送通知

I have got a grails app and a java app which sometimes sends messages to grails and calls some functions. It works fine, but my current task is to get error message from java and show it in my view without refreshing page. I've read that push events plugins could help me in this task, but I haven't find any plugin working with grails 3.3.0.

So, how can I solve this task? How bad is solution to send get ajax requests from client to server, and if server has any flag then send message in response?

  • 写回答

1条回答 默认 最新

  • weixin_33712987 2018-07-05 13:43

    For server to web client push you can use Server Send Events which is built into Grails or Spring Websockets which has a lot more functionality such as 2 way communication, topics, etc. Both work with Grails 3.3.x

    As you mentioned a polling ajax request may be simple enough to meet your needs.




  • ¥20 家用射频美容仪技术规格
  • ¥25 matlab数值溢出该怎么解决?
  • ¥15 大家帮我看看为什么错了
  • ¥15 unity互动琴弦抖动效果
  • ¥15 做了个的二极管反向饱和电流测量电路,但是测试达不到效果
  • ¥15 nginx无证书访问https失败
  • ¥15 树莓派启动AP热点传入数据
  • ¥15 multisim中关于74ls192n和DSWPK开关的问题(相关搜索:计数器)
  • ¥15 在误装Windows server2019 后如何利用Windows.old恢复?
  • ¥20 代码实现状态连接包过滤防火墙的设计与实现