websocket-demo a spring-boot websocket demo git clone https://github.com/tianyapkgou/websocket-demo run this project and input http://localhost:8080/ws on Chrome or ohter browers. pakaging war. run the package: java -jar xxxx.war