Skip to main content

All 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. ...
Allen Alex Abraham's user avatar
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 ...
lsm's user avatar
  • 11
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 ...
ScottFree's user avatar
  • 622
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 ...
mnd's user avatar
  • 2,759
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&...
marius627's user avatar
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 ...
soudiogo's user avatar
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 ...
UltraLegend's user avatar
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 ...
Tuan Le Anh's user avatar
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) { ...
Ammar Zafar's user avatar
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 ...
Ravikumar's user avatar
  • 503
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 ...
Wais Kamal's user avatar
  • 6,100
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 ...
Ibra038's user avatar
  • 171
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 ...
André Silva's user avatar
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 ...
Philipp Claßen's user avatar
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 @...
Denis Stephanov's user avatar

15 30 50 per page