You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following a discussion I had on the NestJS discord server.
I am currently refactoring and migrating my open source project, SquirrelServersManager, to NestJS!
However, I am encountering a problem I cannot solve:
Is there an existing issue for this?
Current behavior
Hi everyone.
I am following a discussion I had on the NestJS discord server.
I am currently refactoring and migrating my open source project, SquirrelServersManager, to NestJS!
However, I am encountering a problem I cannot solve:
I have one module, called "ssh", that has a websocket gateway. (https://github.com/SquirrelCorporation/SquirrelServersManager/tree/chore-refacto-nestjs/server/src/modules/ssh ; https://github.com/SquirrelCorporation/SquirrelServersManager/blob/chore-refacto-nestjs/server/src/modules/ssh/presentation/gateways/ssh.gateway.ts)
This module is "standalone", its not injected in any other module
However, I am seeing in the logs that the handleConnection methods is called twice (but the client only connect once):
I tried a lots of stuff:
What am I missing? I am pretty sure that the module is not explicitely imported two times, however, the logs say the contrary
Minimum reproduction code
https://github.com/SquirrelCorporation/SquirrelServersManager/blob/chore-refacto-nestjs/server/src/modules/ssh/presentation/gateways/ssh.gateway.ts
Steps to reproduce
No response
Expected behavior
Gateway should only be registered once.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
11.0.11
Packages versions
Node.js version
23.8.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: