Saturday, May 9, 2020

Re: automatically refresh data in web page

Fwiw, WebSocket is for bidirectional communication. Have a look at Server-Sent Events (aka EventSource), https://caniuse.com/#feat=eventsource, it might be easier to integrate in your server stack (it's HTTP, whereas WebSocket is a whole different protocol that needs support at the web server level as well as all reverse-proxies)

On Saturday, May 9, 2020 at 3:24:10 PM UTC+2, Marteijn Nouwens wrote:
I recently asked the same question and was advides to use web socket from elemental2.

The doc not not good but it;s not hard to figure it out.

If you need pointer i can help.

Marteijn


Op zaterdag 9 mei 2020 12:35:08 UTC+2 schreef wissam aoufan:
Hi,

I'm using GWT and I want to know what's the best way of refreshing data push it to a webpagge automatically i.e. when data is inserted in my database, i want to push it to the browser.

Thanks.


Wissam

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/d1fe77fa-6d9a-4f24-812e-d8f4a61dea44%40googlegroups.com.

No comments:

Post a Comment