GWT和WebSocket /将数据从服务器推送到GWT客户端 [英] GWT and WebSocket / Push data from server to GWT client
问题描述
是否有任何支持WebSockets并与GWT兼容的好库?理想情况下,该库将支持WebSocket,并支持不支持WebSocket的浏览器,例如类似彗星的方法或投票。
我目前使用 GWT-Comet 将数据从我的服务器推送到我的GWT Web应用程序。然而,这个库在某些方面有点破,看起来它不再被主动维护。因此,我正在寻找替代品。 氛围/气氛>大气,这个问题很适合这个问题。它支持GWT,也支持Websockets。此外,它还支持许多不同的应用程序服务器,如Tomcat和Jetty。
Is there any good library which supports WebSockets and is compatible with GWT? Ideally, the library would support WebSockets as well as a fallback for browsers which don't support WebSocket, e.g. a comet-like approach or polling.
I'm currently using GWT-Comet to push data from my server to my GWT web application. However, this library is a bit broken in some aspects and it seems it's not maintained actively anymore. Thus, I'm searching for an alternative.
I found Atmosphere, which suits the needs stated in the question pretty good. It supports GWT, and also Websockets. Also, it supports many different application Servers, like Tomcat and Jetty.
这篇关于GWT和WebSocket /将数据从服务器推送到GWT客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!