我能够成功启动并运行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/