AJAX PUSH (Streaming) implementation in Dojo and J

2019-06-03 16:22发布

问题:

I need to push data continuously from Java web application running on Tomcat to a Dojo implemented website.

How to handle this from both server and client?

回答1:

Consider using the Bayeux protocol. A stable implementation of this protocol is provided by cometd http://cometd.org/ (which is a Dojo Foundation project, and so it's fully compliant with dojo toolkit).