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
1 answer
92 views

Angular implementing websocket using sockJs and Stomp getting CORS Error

I used Stomp and SockJS for implementing WebSocket, and our backend is built with Spring Boot. this is my client code: and baseApi is something like this: baseApi: 'https://api.test.com' this is ...
heliya rb's user avatar
  • 791
0 votes
0 answers
39 views

Failed to handle GenericMessage issue with WebSockets and MongoDB

I want to do simple chat service for my project, which has multiple input users but one end user who get messages from all of them. I have such classes @Service public class ChatUserService { ...
Hubert Kiszka's user avatar
0 votes
1 answer
66 views

spring multi tenant application with websockets?

I have a working spring multi tenant application. It uses the familiar construct of a thread local variable and a web filter, and uses the hostname (subdomain) to determine which tenant is active. But ...
tbeernot's user avatar
  • 2,574
0 votes
0 answers
11 views

Strange random packet delay on client [Java Spring/Netty + WebSocket]

There is a server (Java Spring + Netty), there is a client in Javascript. The server and client communicate via sockets. The server sends packets (about 200 bytes each) to the client at a fixed ...
Akhmed Turabov's user avatar
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
0 votes
0 answers
18 views

Websocket - Client is still with https-200 even though server have successfully upgraded the connection and shared back 101 response

I am having an application using websocket for communication but randomly observing that the browser is still with https & status 200 instead of 101, even though the handshake is successful and ...
Ganges's user avatar
  • 1
0 votes
0 answers
38 views

Websocket request is ignored in Spring gateway security

I have a problem with connecting spring WebSocket(Using sockJs). Currently, we are using a gateway service(written in spring boot) to redirect incoming requests to appropriate micro-services. But I ...
Mohammad's user avatar
1 vote
0 answers
19 views

Stomp over websocket , data not receiving to the client

@Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void configureMessageBroker(MessageBrokerRegistry config) { ...
Lalindu Wenasara's user avatar
0 votes
1 answer
145 views

Spring WebSocket upgrade failure. response 400 BAD_REQUEST

I have an Spring app with Stomp WebSocket but when i try to connect to it using Postman or wscat i get an "error : Unexpected server response : 400" Here is configurating code i use : In ...
Anatoliy's user avatar
0 votes
0 answers
58 views

WebSocket session using org.springframework.web.socket vs org.springframework.web.reactive.socket

I have a working WebSocket session based on org.springframework.web.socket where the method handleTextMessage is overridden and receives the payload successfully When trying to do something similar ...
Rajvansh's user avatar
-1 votes
1 answer
51 views

Spring Websocket CORS issue

I have a web application served by an Angular frontend and Spring Boot backend. They are deployed with a multi-stage Docker build on the same server. I had an issue of the websocket on Angular not ...
Testing's user avatar
0 votes
0 answers
21 views

When i reload or logout from my app the disconnect function in the backend runs twice and i am getting two session different ids when logging out

I am developing an application where there is a chat feature and I am facing a problem. When I logout from the app, I see two disconnects from two different session ids for the same user. The output ...
Mehdi Ziadi's user avatar
0 votes
0 answers
58 views

Websocket duplicate on headers

I'm doing a migration from a monolith to microservices on a springboot web application, there is a service about websocket but I can't connect when I'm doing the migration. This code still work in ...
Pla's user avatar
  • 13
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
-1 votes
1 answer
195 views

Java WebSocket client memory leak

I have an application that runs multiple client socket connections. I've noticed that when I send thousands of messages simultaneously, it occasionally generates a memory leak. What could it depend on?...
Gabriele Ligia's user avatar

15 30 50 per page
1 2
3
4 5
99