Simplest solution a timer that polls the DB every 10sec let's say.

If you want a truly asynchronous server side notification you should look
at websockets or long polling...

    Vassilis

On Tue, Sep 20, 2016 at 12:38 PM, Olar Andrei <olarand...@gmail.com> wrote:

> Hello,
>
> In my GWT application I have a messaging system integrated within. When a
> specific conversation gets opened, a query runs and selects all messages
> available for this conversation. From the same view you can reply to that
> conversation. When replying, the other user has to click a small refresh
> button (located on top, which agian gets all mesages from the DB running
> the same query from above) in order for the last message to appear.
>
> My question: How can I make that refresh automatically, so you don't have
> to click on the button in order to refresh the conversation. Like in FB,
> Messenger, etc, where you don't refresh the conversation and the messages
> keep coming without you having to do anything.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to