Skip to main content

All Questions

0 votes
1 answer
10 views

Spring 5 Websocket endpoint not reachable

I implemented a simple websocket endpoint in my Spring app (which is deployed in Tomcat) and I cannot reach it. Configuration in my application context XML <bean id="myWebSocketHandler" ...
Johnson's user avatar
  • 29
-1 votes
1 answer
21 views

Custom Jetty WebSocketPolicy with Spring6 / Spring Boot 3 Web Sockets

In older versions of Spring, a custom policy could be applied by doing the following: @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends ...
rento's user avatar
  • 93
0 votes
0 answers
14 views

Spring 4.2.9 WebSocket server on WebLogic 12.2.1.4 -> 401 Unauthorized

I am trying to add a websocket endpoint to a Struts 2 + Spring Framework 4.29 web application deployed on a WebLogic 12.2 server that has to listen for text and binary data from a network scanner. But ...
karmapolice's user avatar
0 votes
0 answers
29 views

@SendToUser does not work, but convertAndSendToUser works

@SendToUser doesn't send messages to given path, but convertAndSendToUser() do. I checked the client side and it subscribes correctly. I expect @SendToUser in RoomExceptionHandler to send errors when ...
dimitri08's user avatar
0 votes
0 answers
25 views

Issue Receiving WebSocket Notifications in a Spring Boot Application

I am working on a Spring Boot application using WebSocket for real-time user-specific notifications. Although the WebSocket connection is established and notifications are correctly sent from the ...
Eshtar Chi7aja's user avatar
1 vote
0 answers
25 views

Not Receiving WebSocket Notifications in Spring Boot Application

I am currently working on a Spring Boot application that uses WebSockets for real-time communication. I have set up a notification system where notifications are sent to a specific user via WebSocket. ...
Steph af's user avatar
-1 votes
0 answers
31 views

CORS failure - Origin not matching

Hope all are well? I have been trying to work with websockets implementation in Spring. I am running into an issue with CORS where the client is sending the origin header as http://localhost:3000 ...
Himanshu Bhardwaj's user avatar
1 vote
1 answer
25 views

How to deny preSend() in ChannelInterceptor based on custom check via DB call

Within my WebSocketConfig class: @Configuration @EnableWebSocketMessageBroker class WebsocketConfig(<...>) I override: @Bean(name = ["csrfChannelInterceptor"]) fun ...
Captain Jacky's user avatar
0 votes
1 answer
84 views

Spring websocket connection closed by spring cloud gateway after 30 seconds

My application is a microservice application. I am using spring web sockets to send notifications to the front end. In my application, I have a gateway service to route the HTTP requests to the ...
Devmina's user avatar
  • 45
0 votes
0 answers
15 views

Spring SimpleBroker and strange stomp Connected message

I'm working with Spring 6.0.9 and Stomp. If I use RabbitMq as external Broker, the Stomp "CONNECTED" message looks like this: message (org.springframework.messaging.support....
Tobia's user avatar
  • 9,380
1 vote
2 answers
250 views

Websocket connection fails when adding Spring Boot Security

In a project, I have to implement a live chat between users. To do so I decided to use Websockets. I currently have a frontend client written in React and a Spring boot backend written in Java. The ...
Jay24's user avatar
  • 21
0 votes
0 answers
44 views

When event is triggered, User comes as null, Spring Boot, Secure Websocket

Hello guys, I have a weird problem with WebSocket in Spring Boot. Now, I am trying to authenticate the user when the user triggers an event from the client side (React, Typescript app); I have no ...
Gollum's user avatar
  • 33
1 vote
1 answer
64 views

Spring WebSocket: Discrepancy in CORS Behavior between XMLHttpRequest and Fetch Requests despite Credentials Set to False

I have configured Credentials to false in my Spring WebSocket application. However, when I request http://192.168.7.175/api/webSocketEndPoint/info?t=17139606, the response status is 200. Despite this, ...
sadeq shahmoradi's user avatar
0 votes
0 answers
44 views

I am trying to make a java websocketWhen I am trying to connect to websocket, I am getting following error : Request method 'GET' is not supported

Pom.Xml : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
asma's user avatar
  • 1
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

15 30 50 per page
1
2 3 4 5
45