0

Please correct me if I'm wrong that Transport.WEBSOCKET_XHR means that browser asks server via XmlHttpRequest (AJAX) and server responds to the browser via websocket.

So, with Transport.WEBSOCKET_XHR, is there any out-of-the-box functionality available in Vaadin to check if a web socket is still alive before an XHR request, like (ping pong)? If there is no such functionality, how can I implement it myself?

If no, do we have such validation for pure full-duplex websocket implementation with Transport.WEBSOCKET? Will Vaadin effectively detect dead websocket on the initial call to server with Transport.WEBSOCKET?

alexanoid
  • 24,051
  • 54
  • 210
  • 410
  • Do you have issues with the Push? – Simon Martinelli Nov 18 '22 at 07:02
  • As Vaadin uses Atmosphere I would say this is handled by Atmosphere and also can be probably configured there. – Simon Martinelli Nov 18 '22 at 07:17
  • Yes, the following issue https://stackoverflow.com/questions/74418180/vaadin-23-websockets-iphone-updates-with-delays On flaky internet connection XHR works but looks like do not receive a web-sockets response. – alexanoid Nov 18 '22 at 15:28
  • looks like strategy with `Transport.WEBSOCKET_XHR` don't understand that web-socket connection is not alive.. maybe because of absence of ping-pong health check.. – alexanoid Nov 18 '22 at 16:21

0 Answers0