Questions tagged [nestjs-socket.io]
7 questions
2
votes
1 answer
Nestjs how to use http request and Websocket at the same time
I have a controller in Nestjs that handles an HTTP request. There is an IoT device that communicates with the server and sends the latest changes to the server with a post request. At the same time, there is a mobile application that should receive…

Vahid Najafi
- 4,654
- 11
- 43
- 88
1
vote
0 answers
web sockets rooms not works in nestjs
I'm creating a simple chat app with rooms and I meet the problem, that, seems like socket.io can not join the room, I have schemas in mongodb, those are users, messages and rooms, for room id I provide the id of rooms schema and then want to join it…

Vahan
- 28
- 3
- 11
1
vote
2 answers
Websockets not connecting with postman using nestjs
I am trying to make a connection with websockets. If I need to connect to the postman I need to include app.useWebSocketAdapter(new WsAdapter(app)); to make it work. But once I include this line it stop connecting with my react native code. When I…

JN_newbie
- 5,492
- 14
- 59
- 97
1
vote
1 answer
nestjs sockets connected and disconnected
I have sockets problem with Nestjs, in every second it writes connected and disconnected, searched some several same questions on Stackoverflow, also on Youtube lessons but did not help.. will be happy if someone helps..
this is log
[Nest] 12036 -…

n1koloza
- 539
- 5
- 11
0
votes
0 answers
How to not emit to all the instance of my API through Pub/Sub (when handling websocket messages) - NestJS | Redis Pub/Sub
I have a NestJS project that establishes websocket connections between client and server,
I have realized that websockets are not scalable and adopted Redis Pub/Sub so i can emit every message (publish) that client sends to API and receive the…

Bruce Armstrong
- 5
- 2
0
votes
0 answers
How Sending files via socket io with nestjs in the event
How Sending files via socket io with nestjs in the event
How Sending files via socket io with nestjs in the event
How Sending files via socket io with nestjs in the event
0
votes
1 answer
NestJs backend Failed over AppGateway initialization when run docker-compose up -d
I have a separate app for Backend(NestJs) and Frontend(AngularJs).
When running backend locally(nest start) then getting success like below :
[Nest] 51995 - 21/09/2021, 11:17:00 pm [NestFactory] Starting Nest application...
[Nest] 51995 -…