All Questions
Tagged with spring-websocket reactjs
22
questions
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
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 ...
0
votes
0
answers
71
views
Cannot read properties of null (reading 'addEventListener') Getting error while connecting to sockjs
I'm getting the above error when trying to run the application. I'm using spring boot on the backend and websocket. And using js and sockjs library.
This is the error I'm getting:
ChatRoom.js:45 ...
0
votes
0
answers
149
views
How to replace Hocuspocus server by springboot websocket inside a tiptap editor + Hocuspocus Provider app
To make the server part as easy as possible, tiptap provides an opinionated server package, called Hocuspocus. It’s a flexible Node.js package, that you can use to build your custom backend. However, ...
0
votes
1
answer
482
views
spring websocket not receiving messages from react
I have a spring application that needs to receive messages using a websocket.
Config.java
@Configuration
@EnableWebSocketMessageBroker
public class Config implements WebSocketMessageBrokerConfigurer {
...
2
votes
0
answers
79
views
react-stomp only working in debug mode in React-native
I am using react-stomp for subscribing stomp connection but it is only working in debug mode
import SockJsClient from 'react-stomp';
<View>
<SockJsClient
url={STAMP_URL}
topics=...
1
vote
2
answers
302
views
Error connect to Spring-boot-Rsocket (Auth JWT) from web-client RSocketWebSocketClient
The connection to server with spring-boot client works good:
public RSocketAdapter() throws IOException {
requester = createRSocketRequesterBuilder()
.connectWebSocket(URI.create("ws://...
6
votes
2
answers
8k
views
How to fix cors ''Access-Control-Allow-Origin' in Spring Boot WebSocket App?
all. I'm new to Spring Boot and Websocket. This is my first integrated React and Spring Boot project and I'm currently building a chat app with a backend using WebSocket.
As mentioned, my front end is ...
1
vote
0
answers
370
views
react js + spring framework websocket
I am new to react js and spring boot where implemented websocket using spring boot and try to subcribe th topics using react js. but on connecting i receiving "Access to XMLHttpRequest at 'http://...
0
votes
1
answer
1k
views
Cannot send message after handshake in SockJsClient (React)
I am using Spring Boot-React JS and trying to send message through WebSocket. Handshake is fine, i can subscribe with no problem. When i try to send data to a topic, does not work. onMessage did not ...
0
votes
2
answers
3k
views
ReactJS: STOMP subscription to multiple topics
My React code creates a WebSocket connection to our company's ActiveMQ 5.15.5 server, and then subscribes to the following two topics: salary and decoding. The problem is that the code is only able to ...
0
votes
1
answer
2k
views
How to set up heartbeats with webstomp-client and Spring Boot?
I have a React.js frontend establishing websocket connections (STOMP) with a Spring Boot backend.
I'm using the webstomp-client library on the front-end, because that is the one recommended in the ...
0
votes
1
answer
686
views
How to load huge amount of data from spring boot to reactjs?
I have two applications, spring boot backend and react frontend. I need to load a lot of data (lets say 100 000 objects, each 3 Integer fields), and present it on a leaflet map. However i don't know ...
0
votes
1
answer
179
views
react-stomp connection delay and raise error with sprint boot websocket and zuul api gateway
When connecting directly to spring boot WebSocket url, there is no issue and pretty fast. But if connecting through zuul api-gateway url, there is a significant delay in connection and raise errors.
...
5
votes
1
answer
4k
views
How to properly configure websocket with springboot and reactjs?
I can establish a websocket connection with my springboot server but I can't access the endpoint from @MessageMapping when I'm trying to send a message. Here are my configurations:
@Override
public ...