use annotation with JSR356.the container is jetty. access the httpSession in WebSocket session.
some code copy form internet and spring boot project
run application as spring boot. view 127.0.0.1:8081 open web page. click connect to connect server and will receive a message.
run main method in TestApp
other demo: