Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple gateways with socket.io get (disconnect listeners added to [Socket]) #7228

Closed
aviadhadidainx opened this issue Jun 3, 2021 · 2 comments

Comments

@aviadhadidainx
Copy link

Bug Report

Current behavior

Using multiple gateway (Same socket io server).
When there a connection we get 'Possible EventEmitter memory leak detected. X disconnect listeners added to [Socket]'

It looks like for every gateway for every connection is subscribed to disconnect event(Also connect). Look on image below:

image
The file is ws-adapter.js

Expected behavior

Not to get this warning or at least understand what can cause it and what is the risk

Possible Solution

N/A

Environment


Nest version: 7.6.11

I also tried to update to latest but with no success
 
For Tooling issues:
- Node version: 12.16.3
- Platform:  Windows

@aviadhadidainx aviadhadidainx added the needs triage This issue has not been looked into label Jun 3, 2021
@kamilmysliwiec
Copy link
Member

Please provide a minimum reproduction repository.

@kamilmysliwiec kamilmysliwiec added needs clarification and removed needs triage This issue has not been looked into labels Jun 4, 2021
@aviadhadidainx
Copy link
Author

aviadhadidainx commented Jun 22, 2021

New issue with project example was created on https://github.com/nestjs/nest/issues/7287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants