Server-Sent Events by using elemental-dom example: 
https://github.com/axls/gwt-spring-boot-samples/blob/master/gwt-spring-boot-sample-sse/src/main/java/gwt/springboot/sample/sse/client/ApplicationEntryPoint.java

WebSocket by using elemental-dom example: 
https://github.com/axls/gwt-spring-boot-samples/blob/master/gwt-spring-boot-sample-websockets/src/main/java/gwt/springboot/sample/websockets/client/ApplicationEntryPoint.java

Very simple examples, but may be usefull as starting point. And examples 
contains both, client and server code in one project, but this is not 
recommended due to leaking GWT dev-dependencies into server classpath.


On Sunday, May 10, 2020 at 5:42:37 PM UTC+3, Marteijn Nouwens wrote:
>
> Hi Thomas
>
> For my information. What would you use on the gwt side for EventSource.
>
> Marteijn
>
> Op zaterdag 9 mei 2020 17:25:18 UTC+2 schreef Thomas Broyer:
>>
>> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/45c0a307-6fa8-4c6f-a05a-3652eadd3430%40googlegroups.com.

Reply via email to