Spring Boot WebSocket AngularJS Gradle Example

Introduction

WebSocket is a very thin, lightweight layer above TCP used to build interactive web applications that send messages back and forth between a browser and the server.

The best examples are live updates websites, where once user access the website neither user nor browser sends request to the server to get the latest updates. Server only keeps sending the messages to the browser.

For more information on WebSocket please read https://en.wikipedia.org/wiki/WebSocket

In this example, I am building a WebSocket application with Spring Boot using STOMP Messaging to provide automatic updates on the greeting message depending on the time of the day for every 3 secs. Continue reading “Spring Boot WebSocket AngularJS Gradle Example”