Skip to main content

All Questions

Tagged with
2 votes
0 answers
379 views

socket 404 error in nestjs/react environment that I don't know why

i don't know why it returns a 404 error even though it seems to have worked in a standard way i've been trying to find the cause all day, but I can't find it. if anyone knows about this issue, I would ...
acatina's user avatar
  • 21
3 votes
1 answer
498 views

nestjs websocket emitWithAck (nestjs emit acknowledgment)

Has anyone used the emitWithAck method in nestjs? How to use it? This is my code to use emitWithAck emitWithAck(SocketEvents.EVENT_REMINDER_NEW, data , function (err: any, data: any) { ...
Mohammad Shahheydar's user avatar
0 votes
0 answers
267 views

Why I only received first message in WebSocket connection

I have my client (React.js) - server (Nest.js) app. My goal is to use WebSocket for sending data from client to server, make some complex computations on the server side, send info about computation ...
Sa1m0n's user avatar
  • 778
0 votes
0 answers
166 views

Websocket not emitting in react and nest.js app

My goal is to send some data from client (React.js) to server (Nest.js) and make some complex computations on server side. Computations take some time, so I need to send info about progress of ...
Sa1m0n's user avatar
  • 778
2 votes
0 answers
25 views

How can understand error occured in backend using socket client in react?

My question is about socket io using nestjs and react. Here I am using nestjs for backend implementation and react for frontend implementation. In Backend- I use nestjs webscoket with validation pipe. ...
Jannat's user avatar
  • 65
0 votes
1 answer
948 views

What is the best practices to listen/subscribe push notifications from RabbitMQ server?

I have created 2 separated application using micro services architecture with NestJs. One is the main app (port 9000), other one is the Notification service (amqp & http port 9001). I have ...
Anriza Kurnia Aziiz's user avatar
0 votes
0 answers
147 views

How to send data about connect and disconnect from the server

I am creating a real-time chat in which I would like to display the number of users who have a page open I know that the handleConnection method shows the ID of the connected. And handle Disconnection ...
Romio's user avatar
  • 13
1 vote
1 answer
46 views

Read-time updates: better to use useEffect, web sockets or something else?

I'm early in the process of learning nest.js + React. I'm building a note-taking app, and I'd like there to be different kinds of real-time updating, e.g.: There's a list of all your notes in a ...
Allen Y's user avatar
  • 580
1 vote
0 answers
267 views

Listening on client side using Socket.on not working

when I am trying to send it to particular room id using socket.to(roomId).emit('msgToClient', data) my client side on react not listening any messages but if I use socket.emit('msgToClient', data)its ...
Siddhant's user avatar
1 vote
2 answers
2k views

react-use-websocket How to open a websocket connection?

I'm trying to open a websocket connection, I'm using react-use-websocket library and everything looks good but when I start the aplication, I see in console a error after try to open websocket. I ...
Young Al Capone's user avatar
1 vote
0 answers
1k views

How to use WebSockets with react and Nestjs?

I want to use websockets for a react app and nestjs backend with socket.io and socket.io-client. But i can't establish the communication via websockets between frontend and backend. here my frontend ...
Remy's user avatar
  • 23
2 votes
1 answer
2k views

Socket.io client is getting disconnected just after connection in NestJS

I'm trying to create chat with nestjs, and it is problem with its @SubscribeMessage(), implementation with connection is working, but when I try to listen the emits from frontend and console the data ...
Vahan's user avatar
  • 48
-1 votes
1 answer
344 views

react socket io too many connection error

I'm trying to use socket io library before making chat application, but i got some error which i can't solve it. I'm using Nest Js for the backend and using React for frontend Here is my code... This ...
jy kim's user avatar
  • 15
4 votes
1 answer
2k views

Web socket constantly disconnecting in react app. Backend is Nestjs

I am trying to create a chat application and my web socket inside the client react application keeps disconnecting for some reason. And if I try to make the same connection from Vue application it ...
Saad Riaz's user avatar
1 vote
1 answer
4k views

Use websockets in NestJs and ReactJS

I want to use websockets using NestJs. According to the documentation i created: // events.gateway.ts import { MessageBody, OnGatewayInit, SubscribeMessage, WebSocketGateway } from ...
Asking's user avatar
  • 3,998

15 30 50 per page