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
720 questions with no upvoted or accepted answers
12 votes
2 answers
4k views

Open connections via Spring Websocket STOMP cause our server to die

So we use Spring websocket STOMP + RabbitMQ on the backend and we are having troubles with the open file descriptors. After a certain time, we hit the limit on the server and the server does not ...
leventunver's user avatar
  • 3,359
12 votes
0 answers
2k views

How to acknowledge websocket (spring websocket + stomp + sockjs) message delivery

I am creating a simple client-server demo using websockets. In this demo client can subscribe to different topics. Whenever server has anything to send, it will just send the message on the ...
Ravindra Thorat's user avatar
10 votes
1 answer
4k views

Performance Issue with Spring Websocket, RabbitMQ and STOMP

I'm struggling with a performance problem for over two months now and I can not solve it. Therefore I'd like to ask for ideas what the problem could be. Issue We develop an application with Spring ...
Marcus Held's user avatar
9 votes
1 answer
1k views

Spring (Grails) WebSocket logs instantly an error: SubProtocolWebSocketHandler - No messages received after *** ms

Having Grails 3.2.11 (Spring 4.3.1, Spring Websocket 4.3.9) I receive log error message that websocket session is idle. 2017-08-09 14:06:45,820 ERROR org.springframework.web.socket.messaging....
kuceram's user avatar
  • 3,855
9 votes
0 answers
2k views

Excessive ERROR logs failed hearbeats with Spring SockJS and non-websocket transports

We're using Spring's SockJS with Stomp to send push messages to the browser. It works fine so far, but when a client (browser) disconnects, we get an ERROR log everytime because the scheduled hearbeat ...
static-max's user avatar
9 votes
0 answers
8k views

Socket.io with Spring MVC

Have someone tried to make a friendship between socket.io and spring mvc? I've found many examples with using of sockJS over Stomp and no examples of socket.io.
Aleksander Melnichnikov's user avatar
9 votes
0 answers
9k views

Spring security websocket and HTTP authentication/authorization

Summary I would like to implement websocket communication over STOMP. Authenticate The user in the time of the first (HTTP request) websocket handshake and use this Principal for authorizing ...
Bence Varga's user avatar
8 votes
0 answers
698 views

How to access and export WebSocketMessageBrokerStats internal counts

I've created a spring boot app with websocket support, and I would like to expose the WebSocketMessageBrokerStats on the prometheus scrape endpoint provided by acuator. I'm able to get access to the ...
Derek Mok's user avatar
  • 313
8 votes
2 answers
6k views

SockJS fails to create/connect to Spring WebSocket

I am learning Spring WebSocket. I have successfully run this Spring WebSocket tutorial. Now I am trying to incorporate it as-is in my existing Spring MVC application. When I run it from Chrome browser,...
user890263's user avatar
8 votes
1 answer
3k views

Websockets + Spring boot + Kubernetes

I am creating a Facebook multiplayer game and am currently evaluating my tech stack. My game would need to use websockets and I would like to use Spring Boot. Now, I can not find the info if ...
Saša Šijak's user avatar
  • 9,073
8 votes
0 answers
351 views

How Do You Configure The Spring Websocket STOMP Server Name?

I am a bit tired of seeing 'connected to server undefined' in the Chrome dev console. How do I give my server a name? @Configuration @EnableWebSocketMessageBroker public class WebsocketConfig extends ...
PiratePowWow's user avatar
8 votes
1 answer
6k views

How to close a STOMP websocket in a spring server

I am using spring-websocket and spring-messaging (version 4.2.2.RELEASE) to implement STOMP over websockets with a fully-featured broker (Apache ActiveMQ 5.10.0). My clients are meant to SUBSCRIBE to ...
Nenad's user avatar
  • 257
8 votes
0 answers
1k views

spring websocket - session closing after 60 sec

We are using websockets with apache-tomcat (8.0.15). The tomcat runs behind a HAProxy which has a timeout server 60s. We are using spring-websocket (4.1.4.RELEASE). Problem we are facing is that the ...
Amit Dalal's user avatar
7 votes
1 answer
2k views

Invalid SockJS path /topic/mytopic - required to have 3 path segments

I've got a spring boot app in which I'm adding the websocket feature so that websocket client can make subscription request to subscribe messages off the websocket topic. In my controller's method, I'...
Sandy's user avatar
  • 497
7 votes
0 answers
3k views

How to handle internet connection loss in stompjs web socket

I am using stomp js in my angular project and also using WebSocket in java spring for backend. Here is the scenario where if internet connection is lost in the client pc then how to notify the client ...
Hardik Siroya's user avatar

15 30 50 per page
1
2 3 4 5
48