Skip to main content

All Questions

Tagged with
-1 votes
1 answer
42 views

React component is increasing in memory usage overtime from rendering? Is there a conflict or memory leak?

Here's my component, what happens is I connect to my websocket and listen for incoming messages from the server and display them. Whenever my message list exceeds 10 messages, I slice the first ...
yaki06's user avatar
  • 9
1 vote
1 answer
129 views

How to prevent 504 Gateway Timeout Error using SignalR with .NET Core API and React client?

I have an endpoint that uploads a CSV into my web application to import data, and while the request succeeds a majority of the time, with bigger data sets, the client eventually times out with a 504 ...
SigmaScout_12's user avatar
0 votes
1 answer
42 views

socket.io client shows connected as true, but still does not send any events

I am using react with socket.io to facilitate websocket communication between client and server. Below is the code I am using. const Main = () => { const [socket, setSocket] = useState(); const ...
Dev Account's user avatar
1 vote
1 answer
41 views

Why socket.io recommends not to listen to events inside Child components?

I have a React app with many pages. Inside one of the pages, I need real-time communication with the server. So, we started using socket.io. But, the doc said as follow Listeners in a child component ...
Nyi Nyi Hmue Aung's user avatar
0 votes
0 answers
16 views

socket.to().emit(), io.to().emit() methods are not working

Actually I am working on a one to many white board application inside it only host can present on canvas other non-host can see the image of that canvas. But in my case a problem arises that when I am ...
Mohammad Irfan lohar's user avatar
0 votes
0 answers
22 views

Locally transfer files from mobile to webapp in reactjs using websockets

I want to create an webapp using reactjs where we can share files, contacts, images, videos etc from mobile to web and web to mobile using local network. Mobile app basically is a server to share ...
Zain Zahid's user avatar
0 votes
0 answers
27 views

Socket io trigger an event twice in react js

im facing an issue. my socket io trigger twice on client side. i dont know what is the issue here. here is my socket configure code in src/socket.ts file and the socket connection in the mainlayout ...
opu's user avatar
  • 31
0 votes
0 answers
48 views

Stompjs + React application - Client connection closed automatically

I'm trying to use the stompjs library along with React application to establish a WebSocket connection with a server. However, I'm facing an issue where the connection is opened and closed immediately....
Daniel Koti's user avatar
1 vote
0 answers
54 views

WebSocket connection error in React and Docker: Could not connect to WebSocket to ws://backend:7000/api/getData

When running my React app in Docker using Nginx as a reverse proxy, I get an error when connecting to WebSocket. I get an error message: WebSocket connection to 'ws://backend:7000/api/getData' failed: ...
Гор Манучарян's user avatar
0 votes
0 answers
11 views

Socket.io only emits to rooms after recompile of react client code

`I am trying to implement socket.io messaging into my react application, and I'm stuck on getting the sockets to work consistently. The socket only works after recompiling the react app, as in, when I ...
Benito Sanchez's user avatar
0 votes
0 answers
20 views

Stream PCD files using Flask Socket Io

I would like to stream(fetch all .pcd files one by one with one request from client to server)PCD files from server to client or front end . Here I have some pcd folders which contains .pcd files, for ...
ApENg's user avatar
  • 1
0 votes
0 answers
14 views

Problem when connecting my frontend to deployed socket server

I am trying to connect a react frontend to a deployed node js backend which also has a socket.io connection. this is working fine locally. But when deploying and connecting to it, it is not making the ...
Ravindu Dharmadasa's user avatar
0 votes
1 answer
81 views

Using Cypress to test React app with Yjs Websocket server backend

Hi I am developing a collaborative tool using react and Yjs. The tool in question is a spreadsheet and I wanted to do some E2E testing to prove the correctness. I intented to use cypress to do this ...
Gabriel Sánchez's user avatar
0 votes
0 answers
20 views

Issues while setting up websocket for graphql subscription

I am trying to make a chat interface. I am using Nexjs in my frontend along with @tanstack-react-query. I have setup my graphql server with apollo server. I have setup the subscription in the server. ...
user24470741's user avatar
0 votes
0 answers
19 views

React front end triggering WebSocket.onmessage twice

I'm new to React and am currently trying to create a real time chat app. I'm nearly finished. the last feature needed is that the React component pasted below needs to receive messages from the Django ...
Dan Gray's user avatar

15 30 50 per page
1 2
3
4 5
70