I'm trying to make a server that notifies connected clients when changes occur. For that, I'm using Spring Boot for the server. In order to deliver notifications, each client establish a socket with the server. I used this guide : https://spring.io/guides/gs/messaging-stomp-websocket/ and it works perfectly. In this example, the client send a message over the socket and the server responds.
- The problem is that I can't find out a way where the server sends a message to client without having the client to send a message first!
- Is it possible to list all connected websockets ?
Thank you,