Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Push not work,an obvious BUG?

Lai Zhou
6 years ago Jul 12, 2016 2:10am
Marco Collovati
6 years ago Jul 13, 2016 9:01pm

are you sure that configureTransport method returns UNDEFINED?

In AtmosphereFramework.configureRequestResponse(...) query string parameters are put into AtmosphereRequest header map, so req.getHeader(HeaderConfig.X_ATMOSPHERE_TRANSPORT) should return the correct value. 

I created a simple app with spring boot and vaadin using spring intializer, added vaadin-push dependency to the pom, annotated UI with @SpringUI and @Push(value = PushMode.AUTOMATIC, transport = Transport.LONG_POLLING) and everything is working fine