This is a simple Spring Boot web app that demonstrates using Websockets and STOMP protocol to implement a simple Chat Server. The Chat Html and Javascript.
It requires Java 8.
- Windows:
mvnw.cmd clean install - Linux/Mac:
chmod u+x ./mvnw./mvnw clean install
- Windows:
mvnw.cmd spring-boot:run - Linux/Mac:
./mvnw spring-boot:run
The following test can be run from the command line:
curl -vk http://localhost:8080/ping
Should get a
pongresponse
In your browser, open up two tabs, both to http://localhost:8080/chat.html.
From within each tab, send chat messages. You should see the messages appear in both tabs.
