All Questions
Tagged with spring-websocket spring-boot
477
questions
-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 ...
1
vote
0
answers
44
views
Failed to instantiate [org.springframework.web.servlet.HandlerMapping]:Factory method 'stompWebSocketHandlerMapping' threw exce with message: null
I am recently upgrading the Java 11 to Java 21 and Spring Boot 2.x to Spring boot 3.2.5. Post migration I am end up with a Run-time Exception which I do not have any clue at all.
I am using ...
0
votes
3
answers
180
views
How to secure microservice websocket endpoint with Spring Cloud Gateway?
I have a microservice architecture based project, for which I have added Spring Cloud Gateway in front. My plan is to centralize security in the gateway. I have added OIDC and OAuth 2 for ...
0
votes
0
answers
29
views
@SendToUser does not work, but convertAndSendToUser works
@SendToUser doesn't send messages to given path, but convertAndSendToUser() do. I checked the client side and it subscribes correctly. I expect @SendToUser in RoomExceptionHandler to send errors when ...
0
votes
0
answers
25
views
Issue Receiving WebSocket Notifications in a Spring Boot Application
I am working on a Spring Boot application using WebSocket for real-time user-specific notifications. Although the WebSocket connection is established and notifications are correctly sent from the ...
1
vote
0
answers
25
views
Not Receiving WebSocket Notifications in Spring Boot Application
I am currently working on a Spring Boot application that uses WebSockets for real-time communication. I have set up a notification system where notifications are sent to a specific user via WebSocket. ...
-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 ...
1
vote
1
answer
25
views
How to deny preSend() in ChannelInterceptor based on custom check via DB call
Within my WebSocketConfig class:
@Configuration
@EnableWebSocketMessageBroker
class WebsocketConfig(<...>)
I override:
@Bean(name = ["csrfChannelInterceptor"])
fun ...
0
votes
0
answers
25
views
@SendToUser doesn't send message to user
I have a problem. I would be very happy if someone could help me with this. My Spring server successfully receives the message and sends a message to "/queue/private-messages", but my ...
0
votes
0
answers
41
views
WebSocket Chat Application in Spring Boot Not Receiving Messages in Postman
Problem Description:
I'm working on a WebSocket chat application using Spring Boot. The application uses STOMP over WebSocket for communication. When I test the WebSocket connection in Postman, I can ...
0
votes
0
answers
19
views
How to handle and replace message from SubProtocolWebSocketHandler in Spring Stomp Web Socket
I am using WebClientSocket library from Arduino and connect with Spring Boot Web Socket.
The issue occur when command send from microcontroller to web server socket.
STOMP command has end of string ...
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 ...
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 ...
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 ...
0
votes
0
answers
44
views
When event is triggered, User comes as null, Spring Boot, Secure Websocket
Hello guys,
I have a weird problem with WebSocket in Spring Boot. Now, I am trying to authenticate the user when the user triggers an event from the client side (React, Typescript app); I have no ...