WebSocket connection ( ERRO )

Hello, Guys I’m having the following problem, could someone help me ?

vaadinPush-min.js?v=6.0.3:1 WebSocket connection to ‘wss://plano3.helloerp.com.br/vaadinServlet/?v-r=push&v-uiId=0&v-pushId=86576184-e929-4ce2-8b8e-7ce0e872c5c3&X-Atmosphere-tracking-id=46283fb1-2944-4ea8-9c7f-fbbe8a6ee5a9&X-Atmosphere-Framework=2.3.2.vaadin1-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true’ failed:
18566306.png

My first educated guess is that you running the application behind proxy http server / load balancer, and have not configured it to route also the websocket traffic to the application server and using @Push(transport = Transport.WebSocket). There are couple of alternatives for you. Easy one is to change to @Push(transport = Transport.WebSocket_XHR). With this option the traffic from browser to server will be http and traffic from server to browser WebSocket. So then you do not setup your proxy to support WebSocket traffic. Another alternative is that you configure the proxy.

Tomcat is responding directly without balancer or proxy
I will test with @Push(transport = Transport.WebSocket_XHR)
If the problem persists, I will try to place a proxy.

Thank you so much

Tomcat is responding directly without balancer

If you are not using Spring Boot, you need to set asyncSupported = true servlet parameter with Tomcat. Otherwise it will not respond to WebSocket.

I’m using “Spring Boot”, but generating “.war”.
When I was generating the “.jar”, the application closes on its own after some time

Should I use “asyncSupported = true” in this case?