简体   繁体   English

GWT股票看守 - 投票不推?

[英]GWT Stock Watcher - Polling not Push?

In the GWT Stock Watch tutorial it seems to be polling the server every 4 seconds for new data. 在GWT Stock Watch教程中,似乎每4秒轮询一次服务器以获取新数据。 Is this the standard way GWT works or is it possible to use a push type technology so that when new events are raised on the server the client code gets called? 这是GWT工作的标准方式还是可以使用推式技术,以便在服务器上引发新事件时调用客户端代码?

This is the standard way GWT works. 这是GWT工作的标准方式。 The incubator has a page outlining how you can achieve push with GWT . 孵化器有一个页面概述了如何通过GWT实现推送

The concept of server push (aka COMET) can be achieved using GWT. 服务器推送(也称为COMET)的概念可以使用GWT实现。 You should check out Stream Hub. 你应该看看Stream Hub。 It is closed source for the time being but I believe it is active. 它暂时是封闭源,但我相信它是活跃的。 I hope they open source it :). 我希望他们开源吧:)。

GWT example GWT的例子

http://www.stream-hub.com/demo/gwt-comet-stock-table/gwt-stock-table-demo.html http://www.stream-hub.com/demo/gwt-comet-stock-table/gwt-stock-table-demo.html

Main site 主要网站

http://www.stream-hub.com/ http://www.stream-hub.com/

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

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