gwt - 使GWT和Grails与Atmosphere插件一起工作

标签 gwt grails comet websocket atmosphere

我能够成功启动并运行GWT Atmosphere演示项目以及Grails大气项目。但是,当使用Grails后端启动GWT Atmosphere客户端时,它将停止处理以下消息:

comet.beforeDisconnected
comet.disconnected
comet.error [connected=false] (0)0
comet.error [connected=true] (-1)Invalid message received: <!--   ---------------------------------------------------------------- http://github.com/Atmosphere ------------------------------------------------------------------------ -->
comet.beforeDisconnected
comet.error [connected=true] (-1)Expecting disconnection but received message: <!-- Welcome to the Atmosphere Framework. To work with all the browsers when suspending connection, Atmosphere must output some data to makes WebKit based browser working.-->

有什么建议吗?

最佳答案

您还有更多输出可用吗?也许异常(exception)?

广播消息时会发生吗?也许您已将暂停的连接配置为在广播中恢复。

也许问题是收到的消息。您可以尝试在挂起时停用写消息的功能,例如:

新的SuspendResponse.SuspendResponseBuilderString ... .outputComments(false) ... .build()

关于gwt - 使GWT和Grails与Atmosphere插件一起工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7260504/

相关文章:

jquery - 需要帮助设置 cometd 代码

javascript - dojo 的性能(日志记录、 cometd 、 slider )

java - 使用 GROOVY SQL 从 SQL SERVER 存储过程获取结果集

javascript - 可以进行客户端 HTTP 推送吗?

java - 如何在 GWT 中获取上周日期

java - 如何从我的消息界面生成区域设置属性文件?

spring - 另一个 Controller 中的Grails Spring安全性登录表单

Grails 和导航插件 : Rendering SubItems from different controllers?

java - 还在使用 GWT-Dispatch 吗?

java - 用 GIN 注入(inject)一个 Class<T>