从控制台查看错误:
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 Push 注释和手动启用 Push 之后似乎没有任何区别。它恢复为长轮询。
我最好的猜测是版本问题。您可以看到它在错误中提到了大气 2.3.2,但 vaadin-push 8.0.0 导入了大气 2.5.4