1,460 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"]
...
-5
votes
0
answers
58
views
Websocket live update system [duplicate]
For the past months I've been creating a chat application for fun using Spring Boot and websockets with Stomp fallback to Sock for real time communication between users which is working, but one ...
0
votes
1
answer
56
views
convertAndSendToUser send messages to all users, want to single
I need my SpringBoot server to reply on message to user sent it. By default (a lot of examples) messages broadcasted. I found that I need to use convertAndSendToUser for doing that, but still have ...
0
votes
0
answers
39
views
Spring STOMP Principal is null
I’m trying to implement authentication in a Spring Boot WebSocket (STOMP) application using a custom ChannelInterceptor.
In my AuthChannelInterceptor, I validate a JWT token during the CONNECT command ...
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
1
answer
88
views
Problem with WebSocket notification from SpringBoot to frontend
I have a Spring Boot application that uses WebSockets (STOMP over SockJS) for real-time notifications. The application is integrated with Keycloak for authentication. The workflow is as follows:
The ...
0
votes
0
answers
28
views
React-Natice Android App + Metro + Java SpringBoot. WebsocketSTOMP Handshake issue
Hi guys I need some help with WebsocketSTOMP in React-Native Android app and Metro.
I can get the connection but no the STOMP handshake.
Frontend DevTool console:
Backend Terminal in Java SPring Boot:...
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, ...
0
votes
0
answers
41
views
Does exists a pattern for Spring MVC Framework to handle progressive job?
I have to improve an import job in my web app made with Spring MVC Framework.
This job can take a bit then would be great to give the user the progression and the possibility to interrupt it.
I'm ...
1
vote
1
answer
81
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
26
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/...
0
votes
0
answers
72
views
JS STOMP client wont connect
I am trying to connect to a STOMP "server" and have initialised a connection, however my code gets stuck at STOMP: Opening Web Socket for about 5 minutes, then finally says the connection ...
0
votes
0
answers
42
views
Error on a library on my webpage jscomp using @stompjs
When I am trying to run my application, I am getting the following error:
$jscomp.global.Object.defineProperties(i.prototype, {
body: {
configurable: true,
...
0
votes
0
answers
26
views
STOMP and internationalization (I18N)
I am using the STOMP websocket protocol with a Spring Boot backend and an Angular/RxStomp frontend.
Clients can subscribe to a channel like /topics/jobs/123 to receive notifications/events about job #...
1
vote
0
answers
76
views
How to disconnect a Stomp Session from Spring EventListener?
I have a EventListener that gets connect requests of a Stomp Spring Server.
@Component
public class WebSocketEventListener {
@EventListener
public void handleWebSocketConnectListener(...