Closed jblyberg closed 1 year ago
handleConnection method already caught socket connection, you dont need attach listener again in each socket connection and this listener you nerver remove manually
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
When using ws as a socket server, disconnected sessions seem to accumulate and the listeners are not flushed after client disconnects, resulting in
MaxListenersExceededWarning
errors:Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-zu55y9
Steps to reproduce
Expected behavior
Package
Other package
No response
NestJS version
9.2.1
Packages versions
Node.js version
19.3.0
In which operating systems have you tested?
Other
No response