1 . Clone project on your machine and run
git clone [email protected]:BatuhanKucukali/spring-boot-websocket-example.git
2 . Open Google Chrome Console and paste the code
ws = new WebSocket('ws://localhost:8080/message');
3 . Start connection and check Network Tab
ws.send("hello")
4 . Close connection
ws.close();
If you're having trouble getting this project running, feel free to open an issue or email me!