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
1,479
questions
0
votes
0
answers
41
views
WebSocket Chat Application in Spring Boot Not Receiving Messages in Postman
Problem Description:
I'm working on a WebSocket chat application using Spring Boot. The application uses STOMP over WebSocket for communication. When I test the WebSocket connection in Postman, I can ...
0
votes
0
answers
19
views
How to handle and replace message from SubProtocolWebSocketHandler in Spring Stomp Web Socket
I am using WebClientSocket library from Arduino and connect with Spring Boot Web Socket.
The issue occur when command send from microcontroller to web server socket.
STOMP command has end of string ...
0
votes
0
answers
18
views
Issue with Dynamically Configuring Streams in RabbitMQ with STOMP and WebSocket
I hope you are all well. I would like to share a problem I am facing in my messaging architecture.
Architecture:
Web clients: Connect to RabbitMQ using the STOMP protocol.
Exchange: Clients subscribe ...
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 ...
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....
0
votes
0
answers
40
views
Spring STOMP and ping/pong timing
I'm working with Spring STOMP and rabbit mq. I'm deepening some disconnections issues probably disposed by a reverse proxy server.
I would like to know how has in charge the ping/pong handling, is ...
0
votes
0
answers
37
views
How to send messages to specific user from service layer using spring boot web socket
I was trying to send messages to a specific user from the Spring Boot application service layer. My application is a microservice application. My requirement is,
when one of microservice send a ...
1
vote
0
answers
107
views
Amazon MQ as broker relay for Spring + Websocket + Stomp is not working
Im not able to connect to Amazon MQ(Active MQ) which i'm setting up as broker relay for web-socket connections over STOMP protocol.
Below are few of my configuration attempts
Environment:
Spring Boot ...
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 ...
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 ...
0
votes
0
answers
17
views
Angular can't access Springboot through Websockets
I'm having a porject, where Springboot is hosting the Angular frontend. The backend is receiving data from a external MQTT-Broker and is supposed to broadcast specific messages that it receives to an ...
1
vote
0
answers
20
views
Why does Webflux WebSocketHandler returned as a lambda expression share the response, but not when defined as a component
The following configuration that returns WebSocket#handle as a lambda expression shares the Entity to all browser connections.
@Bean
public WebSocketHandler webSocketHandler (ObjectMapper ...
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, ...
0
votes
0
answers
33
views
404 error when trying to connect to the websocket (Angular + Spring boot)
In Angular i tried to connect to the websocket but an error message is returned :
websocket.service.ts:15 GET http://localhost:8081/socket.io/?EIO=4&transport=polling&t=OxuZ1WH 404 (Not Found)
...
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&...