1,455 questions
0
votes
0
answers
37
views
How to get sessionId in STOMP CONNECTED frame using Spring Boot WebSocket?
I'm working on a Spring Boot application using STOMP over WebSocket. In my UI client app, I receive the CONNECTED frame like this:
["CONNECTED\nversion:1.2\nheart-beat:0,0\n\n\u0000"]
...
0
votes
0
answers
85
views
JWT Authentication for websockets in Springboot does not pass Principal for stomp commands other than connect
i am working on JWT Authentication for websockets in springboot. In my JWT filter for WS, I found that Principal is getting null while using other stomp commands such as SEND, SUBSCRIBE. My filter ...
0
votes
0
answers
30
views
Preventing Non-STOMP WebSocket Connections from Bypassing STOMP Interceptor level Authentication in Spring Boot
I am using WebSocket with a STOMP client in Spring Boot (I’ll share the configuration file below). I also have an interceptor for authentication control. For connections coming through STOMP, ...
1
vote
1
answer
84
views
How to access authenticated user principal in SessionConnectedEvent when using a ChannelInterceptor for JWT authentication?
I’m using a custom WebSocketChannelInterceptor (implements ChannelInterceptor) to handle authentication during the CONNECT STOMP command. The interceptor extracts and validates a JWT token from the ...
0
votes
0
answers
21
views
Spring WebSocket: How to reject group message but still send error to /queue/errors/{userId}?
I would like to send message to /queue/errors/{userId}, when user is not in the group and also I would like to reject message to group. Problem is how to send message to /queue/errors/{userId} without ...
0
votes
0
answers
27
views
Spring WebSocket with SockJS not publishing messages to /topic destination
I’m trying to implement WebSocket support in my Spring-based backend using STOMP over SockJS. The WebSocket connection is established successfully, but messages published from the backend to /queue/...
1
vote
1
answer
60
views
SpringConfigurator uses uninitialized Log4j2
I'm trying to use SpringConfigurator to configure websocket endpoint. In theory, it should be as simple as:
@ServerEndpoint(value = "/my-endpoint", configurator = SpringConfigurator.class)
...
0
votes
0
answers
102
views
Failed to connect to websocket server in my spring boot application using Angular
I'm trying to make a WebSocket connection in my application using angular and springboot, I have 2 configuration classes, one called UploadSocketHandler and WebSocketConfig. And I'm getting the ...
0
votes
0
answers
35
views
Websocket over StompJS not able to send message to host, running Springboot
I have an Angular fontend application with a Spring Boot backend that uses websockets over Stomp. The app can successfully send websocket messages from the host to the browser. I need to now send ...
2
votes
0
answers
116
views
Message Sent to Queue but Not Received by Subscribed Clients
I am implementing WebSockets using Spring Boot with STOMP for real-time notifications in my application. My setup includes a WebSocket configuration, security configuration, and a WebSocket handler ...
1
vote
0
answers
92
views
Using Spring Websocket to make One to One Chatting application but message is not reaching the Recievers End
I am have been building the One to One Chatting Application using Spring boot and React JS. I am getting an issue when I am sending the message from one user is another. As I making one to one ...
0
votes
0
answers
104
views
How do I subscribe to a user's destination in Spring Messaging WebSockets?
Trying to follow the documentation I would like to send a message to the user's destination and subscribe to it from a browser. The full demo is available here but basically I have
@MessageMapping(&...
0
votes
2
answers
331
views
How to handle ping messages in Java Spring WebSocket
Can you please help me on how can I handle ping messages when extending a websocket handler?
Currently I am extending the Spring's AbstractWebSocketHandler, but even though I see that there exists ...
0
votes
0
answers
90
views
Is there a way to notify a web socket if they are not permitted to subscribe using spring-security?
For the full repo look here
I have the following...
@Bean
fun messageAuthorizationManager(
messages: MessageMatcherDelegatingAuthorizationManager.Builder
): AuthorizationManager<...
1
vote
1
answer
193
views
How do I call a STOMP message with Postman using injection (Using Kotlin)?
I have the following...
@MessageMapping("/hello")
@SendTo("/topic/greetings")
@Throws(Exception::class)
fun greeting(message: TestMessage): Greeting {
However, when I run and send ...
0
votes
0
answers
110
views
Spring Boot - How configure websocket maximum payload size
I have been trying to configure the maximum payload size for binary and text messages for the Websocket server application in Spring Boot without any success.
It's valid to mention I'm not using ...
0
votes
0
answers
60
views
Testing Stomp Client using Postman from Spring Web Socket
I am not able test by subscribing to a particular method using postman
WebSocketConfiguration.java
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfiguration implements ...
0
votes
2
answers
399
views
STOMP Connection Closes Due to Missing Heartbeats Despite Frontend Showing Ping-Pongs
I'm facing a connection issue with my WebSocket setup using STOMP and ActiveMQ Artemis. The error message I receive in my logs:
Received ERROR {message=[AMQ229014: Did not receive data from /192.0.2.1:...
0
votes
1
answer
131
views
WebSocket with Kafka/Active Mq/Rabbit Mq | Spring
My On-Prem application details:
Frontend - Reactjs deployed in 4 VMs [a,b,c,d]
Backend - Spring microservices[Stateless] deployed in 4 VMs [w,x,y,z]]
Database - Sql server
Load Balancer - F5
CDN - ...
1
vote
0
answers
94
views
Spring Boot WebSocket Test: HTTP 400 Error on WebSocket Upgrade Request
Title:
Spring Boot WebSocket Test: HTTP 400 Error on WebSocket Upgrade Request
Question:
I'm trying to test a WebSocket endpoint in a Spring Boot application, but I keep getting an HTTP 400 error when ...
0
votes
0
answers
84
views
How to handle CORS configuration of API gateway and Socket in Springboot Microservices
I have a Springboot Microservice application. I have 4 microservices in my application.
API-gateway,
user-management,
idm-service,
engine-service.
I am using react as frontend here.
API-gateway ...
0
votes
1
answer
119
views
Why does my Spring Integration app just shutdown without listening?
I am trying to implement a Spring Integration app that listens to websocket messages from an external source and logs them to stdout. However as soon as I start my application it shuts down again, if ...
1
vote
0
answers
239
views
How to return the handshake response headers from the websocket destination route on Spring Cloud Gateway
I'm using Spring Cloud Gateway to connect to a backend server using websockets. The route works, but the custom headers added by the destination server are not being returned to the client.
How can I ...
2
votes
0
answers
252
views
Spring websocket with NATS as stomp broker No enum constant error
I am trying to connect my websocket spring server to a NATS as stomp broker
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config
....
0
votes
0
answers
138
views
Implementing a simple websocket client in spring boot listening to 2 different websocket endpoints - but they always start executing together
I have 2 websocket endpoints producing related messages:
"ws://localhost:8032/posts"
"ws://localhost:8032/comments"
Comments are guaranteed to be published after a referred post ...