Vaadin websocket 未在版本 8 中升级

Vaadin websocket not upgrading in version 8

从控制台看到错误:

WebSocket connection to 'ws://localhost:8090/vaadinServlet/PUSH?v-uiId=0&v-csrfToken=27328352-6365-44a4-b980-1ca2d7a5bc1c&X-Atmosphere-tracking-id=0&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: Error during WebSocket handshake: Unexpected response code: 200

这是升级到 vaadin 8.0.0 后的结果 推送注释和手动启用推送似乎没有什么区别。它恢复为长轮询。

我最好的猜测是版本问题。可以看到错误中提到了 atmosphere 2.3.2,但是 vaadin-push 8.0.0 imports atmosphere 2.5.4

据我了解,vaadin 确实在 vaadin-push 中集成了两个 atmosphere 产品,均由 vaadin 分叉。一个用于服务器端 (https://github.com/vaadin/atmosphere) and one for the client side (https://github.com/vaadin/atmosphere-javascript)。我假设他们不需要同步。例如。我看到 atmosphere-samples-2.4.2 已使用 atmosphere-2.4.2atmosphere-javascript-2.3.0 发布。

还有一个问题 https://github.com/vaadin/framework/issues/8734,它说明了通过 websocket 进行 vaadin-push 的问题(以及版本问题)。希望他们尽快解决这个问题。