Nitin Dhomse
Nitin Dhomse

Reputation: 2622

server side push (comete) to populate full Calendar event without javascript polling in Grails.

anybody can please, tell me how we can populate /display data updated dynamically at server side on full calendar without javascript polling /setInterval. there is Atmosphere plugin given in grails but documentation is very poor.

Thanks in advance....

Upvotes: 1

Views: 583

Answers (1)

Tudormi
Tudormi

Reputation: 1112

WebSocket technology provides full-duplex communications via an upgraded HTTP connection. Both the client and the server need to (over)write 3 methods: @OnOpen, @OnMessage and @OnClose. Try this:

http://caseyscarborough.com/blog/2014/12/07/using-websockets-in-grails/

Upvotes: 1

Related Questions