1
使用Grails 2.3.0和2.1.6的Groovy和之後的設置: https://github.com/smaldini/grails-events-push/blob/master/README.mdGrails的2.3事件推插件
我的螢火得到:
Websocket failed. Downgrading to Comet and resending {"topic":"saveTodo","body":"data"}
jquery...here.js (line 2436)
Firefox can't establish a connection to the server at ws://localhost:8080/pushEvents/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0.beta3&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus.
if (jQuery.browser.msie) {
jquery...here.js (line 1276)
TypeError: jQuery.browser is undefined
if (jQuery.browser.msie) {
jquery...here.js (line 1276)
The connection to ws://localhost:8080/pushEvents/g-eventsbus/eventsbus?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1.0.beta3&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&topics=eventsbus was interrupted while the page was loading.
return new WebSocket(location);
好像沒有什麼改變。
事件是否推動這個grails版本的工作?
http://grails.org/plugin/atmosphere插件在grails中運行良好。確保您使用客戶端和服務器端代碼進行配置和正確連接 – swapy