简体   繁体   English

GWT和WebSocket /从服务器到GWT客户端的数据推送

[英]GWT and WebSocket / Push data from server to GWT client

Is there any good library which supports WebSockets and is compatible with GWT? 有没有什么好的库支持WebSockets并且与GWT兼容? Ideally, the library would support WebSockets as well as a fallback for browsers which don't support WebSocket, eg a comet-like approach or polling. 理想情况下,该库将支持WebSockets以及不支持WebSocket的浏览器的后备,例如类似于彗星的方法或轮询。

I'm currently using GWT-Comet to push data from my server to my GWT web application. 我目前正在使用GWT-Comet将数据从我的服务器推送到我的GWT Web应用程序。 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. 它支持GWT和Websockets。 Also, it supports many different application Servers, like Tomcat and Jetty. 此外,它支持许多不同的应用程序服务器,如Tomcat和Jetty。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM