The essence of the comet is that the client connects to the server, go through the request and the server starts to respond ... and everything answers and responds and does not finish the answer for a long, long time. You can even keep the connection open for ages. At the same time, the server at any time can add in response to something and the client will immediately receive a response (if the network works properly, of course), without delay (except network delay).
Since you are using GWT and Java on the server, it is logical to use GWT-comet . Actually, Getting Started .
To better understand the principle, read Ajax for Java developers: Write scalable Comet applications with Jetty and Direct Web Remoting . This article is designed for Jetty and does not describe the client side, but explains how Comet works.