gwt - 使GWT和Grails与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()

https://stackoverflow.com/questions/7260504/

相关文章:

c# - 从C#(WPF)程序向putty.exe实例发送命令

ssh - ssh运行远程命令后未得到提示

deployment - 使用Grunt和rsync将远程文件夹与本地文件夹同步

python-2.7 - Paramiko ssh输出停止在--more--

session - 保持 session 状态

grails - grails spring security openId插件:无法使用Gmail

grails - 如何根据组合框中的选择显示或隐藏GSP上的字段

grails - Grails的浏览器历史记录?

bash - 如何将本地文本文件传递给ssh命令?

ssh - SSH到谷歌云中的VM的问题