Tagged: spring-websockets

Spring-Boot / Websocket Example

It’s been a while! Project for this post: https://github.com/mtrojahn/spring-boot-websocket Recently I stumbled upon the need of using Websockets. I confess I know little about the subject and I hope this little tutorial can help you to get started. I’m making this post just because I tried to help here on StackOverflow and I thought I should just post it here as well. pom.xml

Application.class (nothing special here)



This is the main thing. For this example I added a scheduled method that will periodically broadcast a message to all clients and another method that will just...

%d bloggers like this: