All Questions
Tagged with spring-websocket stompjs
23
questions
0
votes
0
answers
50
views
Can't get Stomp JS client to subscribe to my backend websocket built using spring boot
I am trying to build a chat application where the frontend is built using HTML, CSS, JS, and the websockets handling in the backend is built using Java spring boot.
The below is my client code.
...
1
vote
1
answer
68
views
Spring boot websocket chat(stomp) receive function didnt works
I'm currently implementing websockets with stomp
However, the send function works on the frontend, but I can't receive it on the server side.
SEND
destination:/app/chatAddUser
content-length:15
...
0
votes
0
answers
47
views
React Native and WebSocket communication - StompJS will not connect for me, alternatives?
I have a springboot application that is hosting my websocket endpoints, I can connect to the endpoints and subscribe to a specific topic and get the results perfectly fine using React and StompJS and ...
0
votes
1
answer
620
views
WebSocket heartbeat stops sending PING and then receives "Connection closed"
I have a Spring Boot WebSocket application that uses StompJS. There is a heartbeat setup for every 10 seconds to keep the connection alive. Periodically (maybe 2-10 minutes) the connection will be ...
0
votes
1
answer
176
views
I can't get @SendToUser to work using STOMP in Spring
I am trying to send message between authenticated users with STOMP in Spring. On the client side I am using STOMP.js.
Controller:
@MessageMapping("/hello")
@SendToUser("/queue/hello&...
0
votes
0
answers
264
views
StompJs publish not sending to springBoot Server
Ive created a stompclient with js that can send messages to a spring boot server written in kotlin.
the problem is, the publish method of the stompClient supposedly sends the payload but the server ...
0
votes
1
answer
453
views
How to receive heartbeat sent by StompJS in Spring Boot (without SockJS)
I'm sending heartbeat using StompJS from Angular using this.client.heartbeat.outgoing = 2000; from this documentation https://stomp-js.github.io/stomp-websocket/codo/extra/docs-src/Usage.md.html
...
0
votes
1
answer
523
views
CORS issue when working with spring sercurity and websocket with stompjs and sockjs-client
It is an error when I want to add websocket into my web.
This is my WebSocketConfig
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements ...
0
votes
0
answers
30
views
how can the server detect internet failure at client side using stomp
I'm using Spring Messaging v 5.3.21 for WebSocket. I have following interceptor to validate each request.
@Override
public Message<?> preSend(Message<?> message, MessageChannel channel) {
...
1
vote
0
answers
2k
views
WebSocket connection to 'wss://...' failed
I am trying to establish websocket connection to the spring boot web server deployed in azure from anuglar application.
But connections are not getting success every-time.
It always fail for first ...
2
votes
2
answers
6k
views
How do I send headers in the initial handshake with a Spring websocket server?
I set up a Spring WebSocket server with the following handler:
public class HandshakeHandler extends DefaultHandshakeHandler {
@Override
protected Principal determineUser(ServerHttpRequest ...
3
votes
0
answers
2k
views
StompJS: Random reconnection-loop after a while
Context
12 (testing) React Native devices are connected to our server through WebSockets.
Randomly some devices stop receiving any server activity anymore during the day.
These devices will be stuck ...
1
vote
0
answers
1k
views
Spring Websocket doesn't listen to Unsubscribe event with @stomp/stompjs
I have a spring websocket project and created a very basic page to test it and everything seems to work fine, with the exception of the listener for the UNSUBSCRIBE message.
@EventListener
...
1
vote
1
answer
3k
views
STOMP over WebSockets: Spring Boot expects JSON; NodeJs STOMP.js client fails to connect
When trying out STOMP over WebSockets, I noticed inconsistencies between different implementations, namely between a Spring Boot Java implementation and a NodeJs client written with STOMP.js.
When ...
1
vote
1
answer
297
views
Direct user message doesn't work with Spring Websocket
I am trying send direct messages to user. Application hasn't done authentication so there is temporary solution for creating websocket session users as you can see in added code.
@Configuration
@...