This guide walks you through the process of creating a “Hello, world” application that sends messages back and forth between a browser and a server. WebSocket is a thin, lightweight layer above TCP. This makes it suitable for using “subprotocols” to embed messages. In this guide, we use STOMP messaging with Spring to create an interactive web application. STOMP is a subprotocol operating on top of the lower-level WebSocket.
Click Dependencies and select Websocket.
Click Generate.
Create a Browser Client With the server-side pieces in place, you can turn your attention to the JavaScript client that will send messages to and receive messages from the server side.