We can see that two channels both have traffics ,and all traffics through Websocket is server pushed to client,all traffics through Long Pull are RPC requests.
I want to know is it expected behavior? In my mind, all traffics should be made through Websocket if websocket channel is established successfully. Using websocket ,will get more better performance.
In theory, you could change transport of UI in Vaadin. But bidirectional WebSocket does not support Cookies, so I bet it will break a lot of things in your application.