This is a Kotlin demo for Spring Boot for pushing data from the server to the client with SockJS and StompJS.
This demo is build with with Maven 3.6.x and Kotlin 1.3.x.
Just start the application with the Spring Boot maven plugin (mvn spring-boot:run
). The application is
running at http://localhost:8080.
You can increase the counter by requesting the page http://localhost:8080/notify.
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Web
- WebSocket
- Spring Boot DevTools
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Using WebSocket to build an interactive web application
Stephan Zerhusen
The code is released under the MIT license.