Skip to main content

All Questions

Tagged with
-1 votes
1 answer
21 views

Custom Jetty WebSocketPolicy with Spring6 / Spring Boot 3 Web Sockets

In older versions of Spring, a custom policy could be applied by doing the following: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends ...
rento's user avatar
  • 93
1 vote
0 answers
21 views

How can I broadcast a STOMP messages to all RabbitMQ servers?

I'm working in a multiserver environment. It uses Spring WebSocket and RabbitMQ as an external broker for STOMP. My JavaScript clients send messages to one single backend server through a balancer. It ...
Tobia's user avatar
  • 9,380
-1 votes
0 answers
31 views

CORS failure - Origin not matching

Hope all are well? I have been trying to work with websockets implementation in Spring. I am running into an issue with CORS where the client is sending the origin header as http://localhost:3000 ...
Himanshu Bhardwaj's user avatar
0 votes
0 answers
18 views

Issue with Dynamically Configuring Streams in RabbitMQ with STOMP and WebSocket

I hope you are all well. I would like to share a problem I am facing in my messaging architecture. Architecture: Web clients: Connect to RabbitMQ using the STOMP protocol. Exchange: Clients subscribe ...
Francisco Espinosa Gonzales's user avatar
0 votes
0 answers
37 views

How to send messages to specific user from service layer using spring boot web socket

I was trying to send messages to a specific user from the Spring Boot application service layer. My application is a microservice application. My requirement is, when one of microservice send a ...
Devmina's user avatar
  • 45
1 vote
0 answers
107 views

Amazon MQ as broker relay for Spring + Websocket + Stomp is not working

Im not able to connect to Amazon MQ(Active MQ) which i'm setting up as broker relay for web-socket connections over STOMP protocol. Below are few of my configuration attempts Environment: Spring Boot ...
SelvarajKumarasamy's user avatar
1 vote
2 answers
250 views

Websocket connection fails when adding Spring Boot Security

In a project, I have to implement a live chat between users. To do so I decided to use Websockets. I currently have a frontend client written in React and a Spring boot backend written in Java. The ...
Jay24's user avatar
  • 21
1 vote
0 answers
20 views

Why does Webflux WebSocketHandler returned as a lambda expression share the response, but not when defined as a component

The following configuration that returns WebSocket#handle as a lambda expression shares the Entity to all browser connections. @Bean public WebSocketHandler webSocketHandler (ObjectMapper ...
dinah_foster's user avatar
1 vote
1 answer
64 views

Spring WebSocket: Discrepancy in CORS Behavior between XMLHttpRequest and Fetch Requests despite Credentials Set to False

I have configured Credentials to false in my Spring WebSocket application. However, when I request http://192.168.7.175/api/webSocketEndPoint/info?t=17139606, the response status is 200. Despite this, ...
sadeq shahmoradi's user avatar
0 votes
0 answers
39 views

Failed to handle GenericMessage issue with WebSockets and MongoDB

I want to do simple chat service for my project, which has multiple input users but one end user who get messages from all of them. I have such classes @Service public class ChatUserService { ...
Hubert Kiszka's user avatar
0 votes
1 answer
145 views

Spring WebSocket upgrade failure. response 400 BAD_REQUEST

I have an Spring app with Stomp WebSocket but when i try to connect to it using Postman or wscat i get an "error : Unexpected server response : 400" Here is configurating code i use : In ...
Anatoliy's user avatar
0 votes
0 answers
58 views

WebSocket session using org.springframework.web.socket vs org.springframework.web.reactive.socket

I have a working WebSocket session based on org.springframework.web.socket where the method handleTextMessage is overridden and receives the payload successfully When trying to do something similar ...
Rajvansh's user avatar
0 votes
0 answers
21 views

When i reload or logout from my app the disconnect function in the backend runs twice and i am getting two session different ids when logging out

I am developing an application where there is a chat feature and I am facing a problem. When I logout from the app, I see two disconnects from two different session ids for the same user. The output ...
Mehdi Ziadi's user avatar
-1 votes
1 answer
195 views

Java WebSocket client memory leak

I have an application that runs multiple client socket connections. I've noticed that when I send thousands of messages simultaneously, it occasionally generates a memory leak. What could it depend on?...
Gabriele Ligia's user avatar
0 votes
0 answers
31 views

Having problem with sending message to the Client-Side

I'm using WebSocketMessageBrokerConfigurer on Java Spring. I need to print a message on the client side that is subscribed to server every time I send request to this API routes: @PostMapping("/...
Oianshek's user avatar

15 30 50 per page
1
2 3 4 5
37