This Java API provides both server and client side components: Server: everything in the javax.websocket.server package. Ce n'est pas un téléchargement de fichier mais un calcul à distance, donc seul le serveur connaît la progression de chaque tâche . 2. In this post, we will learn to create a basic WebSocket application. ; Client: the content of javax.websocket package, which consists of . After these configuration steps, we can write our controller class to start the communication over websocket protocol. This pit is about the path, and a little partner may wonder why my subscription has a prefix of / user. Therefore you will need to use a scope proxy mode for WebSocket-scoped beans. Let's start by creating a new Spring Boot application. It accepts a String username which means if we somehow have a unique username for every connection, we should be able to send . We also emit "start" and "stop" messages with " /swns ". . No need to create specific destinations, it's already done out of the box as of Spring 4.1 (see SPR-11309). STOMP is a messaging sub-protocol running over WebSockets which provides facilities such as topic subscriptions. The Spring Framework provides support for WebSocket/SockJS clients and servers in the spring-websocket module. It covers the simplest usage of the technology - the topic style communication. As can be seen, we create a SockJS object using the " /notifications " end point. Spring Boot + WebSocket Simple Example | JavaInUse The handler class at server side will handle the message and return the greeting message as a response which will be shown in the browser as below: WebSocket-based Notification System using Spring - Codes And Notes Spring WebSocket - Huong Dan Java Implement WebSocket with Spring framework Send STOMP message to a specific user with Spring WebSocket Send private message with @SendToUser annotation in Spring WebSocket Spring WebSockets send to single user example. To do this we need to add a configuration to our application and annotate this class with @EnableWebSocketMessageBroker. We get the response data and add it to the text area. 9 Spring WebSocket @SendToSession: envoyer un message à une session spécifique . At the time you want the server to disconnect the connection to the specific client (identified by the ID), send a message containing the ID back to the client. 3. convertAndSendToUser (username, "/queue/reply", message); The closest I can get is to read this thread Sending message to specific user on Spring Websocket, answer by Thanh Nguyen Van, but it is still unclear. Websocket push messages to a specific user with Spring Boot - YouTube As can be seen, we create a SockJS object using the " /notifications " end point. Spring WebSocket @SendToSession: send message to specific session