I've observed, that the server only responds to the identity event and not to the events event. I've added some console.logs and found out that the method is triggered correctly, but the given Response in form of an observable is not emitted at all.
Clone the official sample here: https://github.com/nestjs/nest/tree/master/sample/02-gateways
Update all nestjs dependencies to 10.2.5
Start server npm run start:debug
Serve client `npx static-server . --port 1337``
Open client example in browser http://localhost:1337
Open console and see for yourself. The server only responds to the identity-event, which is implemented with a Promise. The server does not respond to events, which is implemented using an Observable<WsResponse>.
Expected behavior
The event events should be emitted three times, with the appropriate payloads (1, 2, 3).
Is there an existing issue for this?
Current behavior
I'm evaluating NestJS for our next socket.io Project. Therefore i cloned the official sample here: https://github.com/nestjs/nest/tree/master/sample/02-gateways
I've observed, that the server only responds to the
identity
event and not to theevents
event. I've added some console.logs and found out that the method is triggered correctly, but the given Response in form of an observable is not emitted at all.Minimum reproduction code
https://github.com/nestjs/nest/tree/master/sample/02-gateways
Steps to reproduce
https://github.com/nestjs/nest/tree/master/sample/02-gateways
10.2.5
npm run start:debug
http://localhost:1337
identity
-event, which is implemented with a Promise. The server does not respond toevents
, which is implemented using anObservable<WsResponse>
.Expected behavior
The event
events
should be emitted three times, with the appropriate payloads (1, 2, 3).Package
Other package
No response
NestJS version
10.2.5
Packages versions
Node.js version
18.16.0
In which operating systems have you tested?
Other
No response