All Questions
1,042
questions
0
votes
0
answers
370
views
How to work with websockets in react js and spring boot application
I'm trying to connect with web socket which is on spring boot via React JS but not able to establish connection
I'm using the stompJS and sockjs-client libraries from npm
It's working while tested on ...
0
votes
0
answers
33
views
Django Channels WebSocket Authentication with React: Stuck at Handshake
I'm integrating Django Channels WebSockets into my React app and hit a roadblock with user authentication during the WebSocket handshake. Despite setting up everything according to the docs, my ...
0
votes
0
answers
45
views
React function re-mounting multiple times
Title: Issue with managing messages in React components
Question:
I'm encountering an issue with managing messages in my React application, particularly with the Message and MessageList components. ...
0
votes
1
answer
82
views
Websockets works in Firefox but not Chrome
I have implemented websockets with authentication in Spring Boot by passing my bearer token within the Sec-WebSocket-Protocol header as "Authorization, ". This is performed in my React ...
0
votes
0
answers
61
views
React websocket MultiChat Architecture Design
I have to implement a chat service on an application I'm working on.
I wanted to have a brief overview/help on the architectural design of it.
The chat page should look like this.
So I would like to ...
0
votes
0
answers
97
views
React table updating with websocket
I have connection to WebSocket that sends me a message every 0.1s, than i write it to useState. Then react rerender whole table with new element. Is there any method to add new element to table or a ...
2
votes
2
answers
168
views
Invalid frame header error in websocket using by Webpack Hot Update after I use setupProxy for websocket
Below error message is shown on my console.
After researching, I found that this error message is thrown from the initSocket function, which should be used by webpack hot update.
Below is my ...
0
votes
1
answer
174
views
React websocket connection closes after a few seconds
I have a websocket server in node and a react client defined as follows:
import { useState } from 'react';
import { Container } from "react-bootstrap";
import { useParams, useLocation } from ...
-1
votes
1
answer
34
views
How to check whether a useState set (passed in props) is called in a Jest test?
I have a React component with the followings functions:
const changeOrder => { a websocket request
};
const handleArrow = async () => {
const res = await changeOrder(side, headingOrder, ...
0
votes
1
answer
135
views
my websocket is not working after i have deployed my application
so i have my frontend in react and backened in nodejs.I have deployed my backened and frontened both on vercel.
locally the application is running very well . i am replacing the server deployed link ...
0
votes
0
answers
137
views
Error Resolving 'sockjs-client' and 'stompjs' in React and Spring Data Rest Project
I am following this React and Spring Data Rest tutorial and am currently at Part 4: https://spring.io/guides/tutorials/react-and-spring-data-rest
I have completed all the steps for Part 4. However, ...
0
votes
1
answer
225
views
WebSocket not connecting with react+vite app, with backend running on spring boot
My react+vite app is running on the localhost:5173 port and my spring boot is running on localhost:5729. The following is the code for the App.jsx:
import { useState } from 'react'
import './App.css'
...
0
votes
0
answers
22
views
Getting Warning: Session become too large.Will stop sending websocket data
Server is hosted on google-compute-engine. I am getting the warning on client side as "Session become too large.Will stop sending websocket data". How can I manage the web-socket(using ...
0
votes
0
answers
9
views
Question about implementing WebSocket with React and Spring Boot
When I send a message from the frontend to the "/room-list" endpoint, I can see it being received and processed on the backend. However, the stompClient.subscribe() function in React does ...
1
vote
0
answers
16
views
Websockets connection error (socket.io...?)
I am clicking on call button once it does nothing when I click call button twice only then only it establish connection.
Frontend code:
import React, { useState, useRef, useEffect } from 'react';
...