简体   繁体   中英

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. 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?

This is the standard way GWT works. The incubator has a page outlining how you can achieve push with GWT .

The concept of server push (aka COMET) can be achieved using GWT. You should check out Stream Hub. It is closed source for the time being but I believe it is active. I hope they open source it :).

GWT example

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

Main site

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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