Streaming social events with STOMP over SockJS
In this recipe, we broadcast user activities (events) with STOMP over SockJS. SockJS provides a custom implementation of WebSocket.
There is some configuration work to be done beforehand, especially on the Apache HTTP proxy. After that, we will see how to initiate a WebSocket with SockJS and with AngularJS on the client side.
Our WebSocket will subscribe to a topic (for broadcasting) published via Spring from the
How to do it…
- From the Git Perspective in Eclipse, checkout the latest version of the branch
- Run the
Maven installcommands on the
zipcloud-parentproject (right-click on the project, select Run as… | Maven Clean, then select ...