Skip to main content

Questions tagged [spring-websocket]

A Spring Framework module that support WebSocket-style messaging in web applications (native websocket and with SockJS support), including use of STOMP as an application level WebSocket sub-protocol.

spring-websocket
0 votes
0 answers
52 views

Java - WebSocket + mTLS

I am trying to implement an app with WebSocket + mTLS in Java Spring Boot. I have set up a WebSocket config like this: import org.springframework.web.socket.config.annotation.WebSocketConfigurer; ...
Andreas Forslöw's user avatar
0 votes
0 answers
31 views

Websocket STOMP ConnectionLostException in spring boot API

Seeing the below exception in my application more frequently, tried increasing the send-buffer-size and inbound message size but still same issue. Looking for options to fix this issue. 2024-01-17 18:...
D'DAS's user avatar
  • 1
1 vote
0 answers
95 views

Java 8 - Spring 5/WebSockets: struggling with websockets in microservice architecture

I was trying implement a websocket in one of my microservices, I follow some tutorials and all works fine, so I tried implement the same code in my project just to test the handshake between client ...
juanma_gil's user avatar
1 vote
1 answer
473 views

Error 401 with Websockets and Spring Boot Security

I am using Spring Boot 3.1.0, and I am trying to implement some websockets in my application. I am following a tutorial from internet to implement them and generate some unitary tests to be sure that ...
King Midas's user avatar
  • 1,621
0 votes
0 answers
61 views

Adding @Component to subProtocolWebSocketHandler causes No Handler exception

WebSocketConfig.java: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(...
Tony's user avatar
  • 101
2 votes
2 answers
260 views

Java Web sockets in Tomcat causing very High memory usage and OOO

I am coding for an application that forms around 4 thousand connection and send data. but somehow it is consuming memory in more than 700 GB range. what is the ideal way to optimize? any Garbage ...
DJ bravo's user avatar
0 votes
0 answers
63 views

Java Spring Web Socket With STOMP & Sock JS Facing Issue With Proxy

I have implemented websockets in Spring with STOMP & Sock js & it is working as expected. The issue arises when we are moving our application to offshore environment where every request first ...
javalearner's user avatar
0 votes
0 answers
214 views

Websocket endpoint stops working when HTTP2 + TLS is enabled

We have a WebSocket server (written on Spring Boot) and it sits behind Spring Cloud Gateway I've enabled HTTP2 on spring boot for both the gateway and Websocket. When TLS is disabled on both the ...
Ish Mahajan's user avatar
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
27 views

WebSocket ConvertAndSendUser failed to send message to specific user

I try to do a live-streaming bidding. So when the user wins the bid, he is the only person that will receive a message like "You won. An order has been placed." @Override public void ...
Yoey's user avatar
  • 31
2 votes
1 answer
343 views

JavaFX Spring WebSocket send recieve Text & binary message

I am first time developing JavaFX application for learning purpose. I have written spring web socket and want to send receive both binary(Images, text & pdf tec) & text messages. Both text &...
dinu0101's user avatar
  • 499
-1 votes
1 answer
627 views

Send message from server to client use Websocket. Java

I hope for your help, I have already looked through everything but have not found an answer. The task is this: I need to send information from my Java application to the client (frontend). The essence ...
Yevgeniy's user avatar
1 vote
1 answer
1k views

WebSocket connection failing using STOMP.js

I'm using Spring Boot WebSockets, STOMP.js, and JQuery to develop a short training project. Sadly I seem to have missed some crucial point while following guides and the official documentation because ...
Tired8296's user avatar
1 vote
0 answers
64 views

Subscribe springboot web-socket with Postman

I have created a springboot websocket with a topic @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void ...
Rathna Prashanth's user avatar
0 votes
0 answers
66 views

CORS POLICY Accesing springboot websocket from reactjs sockjs-clien

I am using ReactJs as frontend and Spring Boot as backend, using stomp and sockJs. Every time I connect to the socket cors policy is displayed The error is the following : Access to XMLHttpRequest at ...
Ds Smith's user avatar

15 30 50 per page
1
3 4
5
6 7
99